Adjusting a field size based upon its contents
Francis Nugent Dixon
effendi at wanadoo.fr
Sat Nov 17 17:49:59 EST 2007
Hi Mark & Martin,
Thanks for the input.
> set the height of fld x to the formattedHeight of fld x
> set the width of fld x to the formattedWidth of fld x
It never ceases to amaze me, that there is always a command
in Revolution to do what was impossible in Hypercard.
After I sent in my request, I managed to run up a 100 line script
which used pixel size of different fonts to calculate the size of
the field to be displayed. Now I know it can be done with one
or two commands, it makes me feel pretty stupid.
However, it consolidates my old idea of reading the documentation
for five minutes every day to get my head around each and all of
the Rev commands. Time well spent !
Thanks again
-Francis
More information about the use-livecode
mailing list