Confirm bug in MeasureText in LC7.0.4 stable?

tbodine bodine at bodinetraininggames.com
Tue May 5 12:01:37 EDT 2015


Hi,

Do you get this odd behavior of MeasureText function in LC 7.0.4 stable?
(I'm using Win 7).

Make a new field with "don't wrap" off. Add the following script to the
field and watch the message box. Reported vertical size never changes when
there are hard or soft line wraps. It's always the height of a single line.
Reported width seems to ignore line wraps too and reports as if "don't wrap"
is on.

on keydown
   put the text of me into testthis
   put measureText(testthis,me,"size") into tsize
   put tsize && testthis
   pass keydown
end keydown

Thanks,
Tom Bodine



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Confirm-bug-in-MeasureText-in-LC7-0-4-stable-tp4691854.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list