using keyUp to update a fld's style

Jan Schenkel janschenkel at yahoo.com
Thu Feb 27 00:47:38 EST 2003


--- Terry Judd <tsj at unimelb.edu.au> wrote:
> Hi all - I'm using a keyUp handler to toggle an
> editable fld's style 
> between plain and scrolling according to it's
> contents by comparing 
> the fld's textHeightSum() and height which all works
> fine except when 
> the return and delete (or backspace) keys are
> involved. I've tried 
> trapping these separately using the returnKey (or
> whatever) message 
> with no apparent result.
> 
> Any clues on how best to proceed?
> -- 
> Dr Terry Judd
>

Hi Terry,

Have a look at the entries for the 'rawKeyDown' and
'rawKeyUp' messages in the Transcript Dictionary.

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



More information about the use-livecode mailing list