Home » U++ Library support » U++ Core » GetSmartTextSize() fails with QTF text
GetSmartTextSize() fails with QTF text [message #61431] |
Sat, 08 February 2025 00:12  |
Didier
Messages: 728 Registered: November 2008 Location: France
|
Contributor |
|
|
Hello,
While investigating a bug in GraphCtrlI just found a bug in GetSmartTextSize()
The following code:
String s = "\1[1= 13h27:42&][1= 9 Jan&][1*= 0]";
Size sz = GetSmartTextSize(s);
RDUMP(s);
RDUMP(sz);
s = "[1= 13h27:42&][1= 9 Jan&][1*= 0]";
sz = GetSmartTextSize(s);
RDUMP(s);
RDUMP(sz);
Displays:
s = [1= 13h27:42&][1= 9 Jan&][1*= 0]
sz = (1073741850, 54) ===> With QTF text: X size is not correct
s = [1= 13h27:42&][1= 9 Jan&][1*= 0]
sz = (191, 18)
Note: In QTF designer, the string is displayed correctly
[Updated on: Sat, 08 February 2025 00:14] Report message to a moderator
|
|
|
 |
|
GetSmartTextSize() fails with QTF text
By: Didier on Sat, 08 February 2025 00:12
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Oblivion on Sun, 09 February 2025 23:17
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: koldo on Mon, 10 February 2025 07:53
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Wed, 12 February 2025 21:16
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Thu, 20 February 2025 09:11
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Thu, 20 February 2025 22:12
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Thu, 20 February 2025 23:27
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Oblivion on Thu, 20 February 2025 22:56
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Thu, 20 February 2025 23:47
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Fri, 21 February 2025 20:35
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Thu, 27 February 2025 23:44
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Fri, 28 February 2025 00:43
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Fri, 28 February 2025 12:51
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Fri, 28 February 2025 23:54
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Sun, 02 March 2025 15:04
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Sun, 02 March 2025 18:50
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Mon, 03 March 2025 08:42
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Mon, 03 March 2025 22:57
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Tue, 04 March 2025 07:53
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: koldo on Tue, 04 March 2025 08:04
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Tue, 04 March 2025 08:05
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: koldo on Tue, 04 March 2025 09:51
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Tue, 04 March 2025 10:15
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: mirek on Fri, 14 March 2025 09:19
|
 |
|
Re: GetSmartTextSize() fails with QTF text
By: Didier on Sun, 16 March 2025 18:24
|
Goto Forum:
Current Time: Wed Jun 11 22:40:32 CEST 2025
Total time taken to generate the page: 0.05091 seconds
|