enlarge field to size of labeltext
sarah.reichelt at gmail.com
Fri Oct 7 17:30:43 EDT 2005
> I have a button that resizes a label (custonlabel) via 2 fields labelnewname and
> 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"
More information about the Use-livecode