Page 1 of 1

MultiLineTextWidth and space (#32)

Posted: Thu Apr 16, 2015 9:12 am
by 16573450
Hi,
I am experiencing some issues with the MultiLineTextWidth function with the latest 2015 TeeChartPro distribution and how it handles spaces.
For instance, if I do:

Code: Select all

LabelText:= 'bla';
w1:= MultiLineTextWidth(LabelText,numLines);
LabelText:= LabelText + #32
w2:= MultiLineTextWidth(LabelText,numLines);
I get the same width in both cases. If I use another character than the space character, it works fine.
I believe there was some change in the function. Do you know what I am doing wrong here and how i can get the function to return the total width which includes the space character.
I can see that the MultiLineTextWidth has a third parameter and that I am using its default value ttfNormal,
thanks in advance for your valuable help.

Re: MultiLineTextWidth and space (#32)

Posted: Thu Apr 16, 2015 10:42 am
by yeray
Hello,

I've created a new ticket on the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1194
Feel free to add your mail to the CC list to be automatically notified when an update arrives.

Re: MultiLineTextWidth and space (#32)

Posted: Tue Apr 28, 2015 9:48 am
by 16573450
Hi,
is there any news about this issue which is happening on the 2013 release as well?
I would appreciate to have some patch, I could try. Thanks in advance.

Re: MultiLineTextWidth and space (#32)

Posted: Tue Apr 28, 2015 11:46 am
by yeray
Hello,

As you have probably observed this ticket is still open, I'm afraid.
Feel free to add your mail account to the CC list to be automatically notified when an update arrives.