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

Determining if a Field's text is clipped

Post by leston12 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Determining if a Field's text is clipped

Post by Klaus »

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

Re: Determining if a Field's text is clipped

Post by leston12 »

Excellent! That's exactly what I needed.

Thanks Klaus.
Leston
Post Reply