Confirm bug in MeasureText in LC7.0.4 stable?

John Dixon dixonja at hotmail.co.uk
Tue May 5 13:06:32 EDT 2015


If I understand  measureText it is for measuring the length of the text not the height of lines on top of each other... at least that is how I have used it...


> Date: Tue, 5 May 2015 09:01:37 -0700
> From: bodine at bodinetraininggames.com
> To: use-revolution at lists.runrev.com
> Subject: Confirm bug in MeasureText in LC7.0.4 stable?
> 
> 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 		 	   		  


More information about the use-livecode mailing list