enlarge field to size of labeltext
rev at armbase.com
rev at armbase.com
Fri Oct 7 17:49:03 EDT 2005
Quoting Sarah Reichelt <sarah.reichelt at gmail.com>:
Hi Sarah
Thanks, that is exactly what I wanted.
I've left the text quoted below for anyone searchig the archives.
Cheers
Bob; sunny Scotland (honest)
>> I have a button that resizes a label (custonlabel) via 2 fields
>> labelnewname and
>> labelnewtextsize.
>>
>> the script is
>>
>> on mouseUp
>> set the text of field CustomLabel to field LabelNewName
>> set the textsize of field CustomLabel to field LabelNewTextsize
>> end mouseUp
>>
>> I have a large area for the label but if I add too much text or too large a
>> font, the new label is only partially visible because most is outwith the
>> boundary of the label field.
>>
>> Is there a way to dynamically resize the field "customlabel" to
>> enlarge to the
>> size of the text?
>>
>
> set the width of fld "CustomLabel" to the formattedWidth of fld "CustomLabel"
> set the height of fld "CustomLabel" to the formattedHeight of fld
> "CustomLabel"
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list