Page 1 of 1

How can I activate the "Fit Content" for field size

Posted: Wed Apr 25, 2018 9:59 am
by brucelaidlaw
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.

Re: How can I activate the "Fit Content" for field size

Posted: Wed Apr 25, 2018 10:12 am
by richmond62

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"
8)

Re: How can I activate the "Fit Content" for field size

Posted: Wed Apr 25, 2018 12:06 pm
by brucelaidlaw
Ah, Excellent Richmond62!

Thank you! :D