Hello,
I need to resize a field according to it's contained text (which I don't know in advance), so all text will be visible without scrollbars. More or less like inspector's "Fit content" in "Size & position".
Thank you
fit content by script - solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 13
- Joined: Thu Nov 16, 2006 4:34 am
fit content by script - solved
Last edited by Christo777 on Sun Jun 10, 2012 5:47 pm, edited 1 time in total.
Re: fit content by script
look at formattedwidth and formattedheight in the dictionary.
set the width of field "myfield" to the formattedwidth of field "myfield" ...
set the width of field "myfield" to the formattedwidth of field "myfield" ...
-
- Livecode Opensource Backer
- Posts: 13
- Joined: Thu Nov 16, 2006 4:34 am
Re: fit content by script
Thank you, It did work this time.