Peter,
I have a routine that will resize a text field with 1 or more lines(also
works for buttons). Have you solved the problem yet? If not I will send it
to you. It's part of my mobile resizing library.
Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net
-Orig
On Mon, Aug 27, 2012 at 10:11 PM, Peter Bogdanoff wrote:
> Does anyone have a quick and dirty script for resizing a field to fit text
> content?
I do this differently than the other answers, and only for the height.
I stick what needs to be in the field in it, then
put the top of fld goo into
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
en
Maybe something like this:
on mouseUp
put the topLeft of fld "myField" into TL
put the formattedRect of line 1 to -1 of fld "myField" into theRect
put the margins of fld "myField" into M
if number of items of M = 1 then put M,M into M
subtract item 1 of M from item 1 of theRect
s
On 28/08/2012, at 03:11 PM, Peter Bogdanoff wrote:
> Hi,
> Does anyone have a quick and dirty script for resizing a field to fit text
> content?
Hi Peter - if the width of the field remains fixed then you can do something as
simple as this
put the rect of fld x into tRect
put (item 2 of tRec