RE: Resizing a Text Field

2012-08-29 Thread Ralph DiMola
o.net -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Peter Bogdanoff Sent: Tuesday, August 28, 2012 1:12 AM To: How to use LiveCode Subject: Resizing a Text Field Hi, Does anyone have a quick and dirty script for resizing a

Re: Resizing a Text Field

2012-08-28 Thread Dr. Hawkins
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

Re: Resizing a Text Field

2012-08-28 Thread Devin Asay
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

Re: Resizing a Text Field

2012-08-27 Thread Scott Rossi
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

Re: Resizing a Text Field

2012-08-27 Thread Terry Judd
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

Resizing a Text Field

2012-08-27 Thread Peter Bogdanoff
Hi, Does anyone have a quick and dirty script for resizing a field to fit text content? Peter Bogdanoff UCLA On Aug 25, 2012, at 7:17 PM, Jerry Jensen wrote: > I LIKE IT! > > My needs are modest, and so is my tolerance for having to learn "real" SQL > syntax when I only want a tiny bit of