On Aug 27, 2012, at 11:11 PM, Peter Bogdanoff wrote:

> Hi, 
> Does anyone have a quick and dirty script for resizing a field to fit text 
> content?
> 
> Peter Bogdanoff
> UCLA

Here's a start:

on rawKeyUp
  set the height of fld "mytext" to the formattedHeight of fld "mytext"
  pass rawKeyUp
end rawKeyUp

You can also experiment with the formattedWidth of fields whose dontWrap 
property is true.

HTH

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to