Question on message handling

J. Landman Gay jacque at hyperactivesw.com
Wed Oct 12 16:19:59 EDT 2005


Jim Hurley wrote:

> What  puzzles me is that the card apparently gets the keyDown message 
> before the field does. That is exactly what I am looking for, but I 
> don't quite  see why.

I'm not seeing that. I see the field getting the message first, even if 
the field is in a background group.

I made a new stack with a single field. The field has this script:

on keydown which
   get msg
   put " FIELD" after it
   put it
   pass keydown
end keydown

And the card has this script:

on keydown which
   get msg
   put " CARD" after it
   put it
   pass keydown
end keydown


The message box shows " FIELD CARD". I also tried grouping the field and 
setting backgroundbehavior to true with the same results.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list