I have spelling program which plucks a word of any length and puts it into a field. I'd like to shrink (or expand) the width of the field so it just fits the word. At the moment the fields are 250 pixels wide, but a long word may be topped and tailed.
The Fit Content button in the Field Inspector Size field needs to be activated, but I can't see any way of doing this.
How can I activate the "Fit Content" for field size
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 8
- Joined: Tue Mar 25, 2008 12:30 pm
- Location: Sydney, Australia
- Contact:
How can I activate the "Fit Content" for field size
My old hypercard stacks are at:
http://www.angelfire.com/ab2/literacy/index.html
http://www.angelfire.com/ab2/literacy/index.html
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: How can I activate the "Fit Content" for field size
Code: Select all
set the width of fld "fff" to the formattedWidth of fld "fff"
set the height of fld "fff" to the formattedHeight of fld "fff"
-
- Posts: 8
- Joined: Tue Mar 25, 2008 12:30 pm
- Location: Sydney, Australia
- Contact:
Re: How can I activate the "Fit Content" for field size
Ah, Excellent Richmond62!
Thank you!
Thank you!
My old hypercard stacks are at:
http://www.angelfire.com/ab2/literacy/index.html
http://www.angelfire.com/ab2/literacy/index.html