About Store Forum Documentation Contact



Post Reply 
how get textline's str width
Author Message
Llong Offline
Member

Post: #1
how get textline's str width
hi, now i want to create multi editbox.
what can i get the 'Str' width which in the 'TextLine'.
such as "Text_tds.textWidth('Str')", but i can't find the 'tds' of the TextLine.
03-06-2012 03:35 AM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #2
RE: how get textline's str width
You are looking for tds_textline located in gui.h.
03-06-2012 04:11 AM
Find all posts by this user Quote this message in a reply
Llong Offline
Member

Post: #3
RE: how get textline's str width
Thanks
now , i want to calculate the new line with the result of tds.textWidth('str') compare with the TextLine.rect.w().
but the Gui.tds_textline.scale is (0.8,0.8), whether or not use Gui.tds_textline.scale * TextLine.rect.h()???
because the result of Gui.tds_textline.textWidth("12") biggest than the TextLine.rect.w().
i want to know the engine how calculate whether or not the text of the textline is full.
(This post was last modified: 03-06-2012 10:13 AM by Llong.)
03-06-2012 10:09 AM
Find all posts by this user Quote this message in a reply
Post Reply