Determine which control is being focused on in focusOut message?

Trevor DeVore lists at mangomultimedia.com
Thu Jan 31 14:01:57 EST 2008


On Jan 31, 2008, at 1:48 PM, Ken Ray wrote:

> 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... ?

This part I already have working. The handler I call using send in  
time is in the group and it just checks if the long id of the group is  
within the focusedObject. I was just wondering if there was a way to  
determine the object getting focus in the focusOut message of the  
object losing focus.

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com



More information about the use-livecode mailing list