MultiLineTextWidth and space (#32)
Posted: Thu Apr 16, 2015 9:12 am
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:
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.
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 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.