enlarge field to size of labeltext

rev at armbase.com rev at armbase.com
Fri Oct 7 15:36:11 EDT 2005


Hi All

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?

cheers
Bob




More information about the use-livecode mailing list