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.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to