Resizing a Text Field

Dr. Hawkins dochawk at gmail.com
Tue Aug 28 21:52:48 EDT 2012


On Mon, Aug 27, 2012 at 10:11 PM, Peter Bogdanoff <bogdanoff at me.com> wrote:

> Does anyone have a quick and dirty script for resizing a field to fit text content?

I do this differently than the other answers, and only for the height.

I stick what needs to be in the field in it, then

put the top of fld goo into oTop
set the height of fld goo to max (the height of fld goo, the
formattedHeight of fld goo)
set the top of fld goo to oTop

This is actually much simplified; I actually gather the heights for a
handful of fields that need to be side by side, and then set them, but
this sounds like it does what you need.



-- 
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
HawkinsLawFirm at gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109




More information about the use-livecode mailing list