Determining if a Field's text is clipped

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
leston12
Posts: 25
Joined: Thu Mar 28, 2013 8:25 pm
Location: Utah, USA

Determining if a Field's text is clipped

Post by leston12 » Tue Jun 04, 2013 4:43 pm

Does anyone know of a way in LC to know if all the text in a field is visible or if it is 'clipped' in a case such as when the rect of the field is too small to show all of the text?

Thanks!
Leston

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Determining if a Field's text is clipped

Post by Klaus » Tue Jun 04, 2013 4:49 pm

Hi Leston,

you can get the "formattedwidth" and/or "formattedheight" of a field and comparte that to the "height" and/or "width" of that field.


Best

Klaus

leston12
Posts: 25
Joined: Thu Mar 28, 2013 8:25 pm
Location: Utah, USA

Re: Determining if a Field's text is clipped

Post by leston12 » Tue Jun 04, 2013 4:57 pm

Excellent! That's exactly what I needed.

Thanks Klaus.
Leston

Post Reply

Return to “Talking LiveCode”