MultiLineTextWidth and space (#32)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
cssesuc
Newbie
Newbie
Posts: 44
Joined: Wed Apr 08, 2015 12:00 am

MultiLineTextWidth and space (#32)

Post by cssesuc » 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:

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.
thanks,
Nabil Ghodbane (PhD. Habil)

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: MultiLineTextWidth and space (#32)

Post by Yeray » Thu Apr 16, 2015 10:42 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

cssesuc
Newbie
Newbie
Posts: 44
Joined: Wed Apr 08, 2015 12:00 am

Re: MultiLineTextWidth and space (#32)

Post by cssesuc » Tue Apr 28, 2015 9:48 am

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.
thanks,
Nabil Ghodbane (PhD. Habil)

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: MultiLineTextWidth and space (#32)

Post by Yeray » Tue Apr 28, 2015 11:46 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply