Increasing Text Size in Fields

Michael Kann mikekann at yahoo.com
Sun Jan 3 20:12:33 EST 2010


Jim had a couple of questions about a stack he submitted to revonline. I didn't see an email address hanging around so I'll reply here. Maybe he'll see it.

I found Jim's stack here:

http://revonline2.runrev.com/search/searchtype/latest/offset/160
Title Formatter
Jim Hamlyn
Dec 23, 2009

The question was about resizing the text in a fld. The faulty code changes both the textsize and the textheight of the fld. Just change the textsize, not the textheight. 

The following code works. No guardrails included.

on mouseUp
put the textSize of fld "a" into oldTextSize
put oldTextSize + 2 into newTextSize
set the textSize of fld "a"  to newTextSize
end mouseUp

Another question was about select all. It's built-in.

Select all is ctrl-a on Windows, I think cmd-a on Macs

Hope this helps.



      



More information about the use-livecode mailing list