Determine which control is being focused on in focusOut message?

Ken Ray kray at sonsothunder.com
Thu Jan 31 13:48:10 EST 2008


On Thu, 31 Jan 2008 11:31:33 -0500, Trevor DeVore wrote:

> What I'm hoping to do is determine when the focusedObject is moving 
> from a control within a group to a control outside of the group from 
> within the focusOut message. What I'm doing is showing a toolbar 
> while any object in a particular group has focus. Once focus leaves 
> the group the toolbar disappears.  While I have a solution working 
> the code could be a little cleaner.

How about just checking the 'owner' property on the control you're 
going to in comparison to the one you're coming from? If  the owner of 
the control is the card, it's not in the group... ?

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list