On Jan 31, 2008, at 10:42 AM, Ken Ray wrote:

Well, the only other thing I can think of is to keep track in a custom
property/global/etc. of each object that gets the focusIn message, and
then send a message to the previous object. But keep in mind that an
unlocked field won't get a 'focusIn' , so you'd need to do the same
thing for 'openField'. Something like a frontscript (unless you're not
trapping focusIn/openField) that is:

I have something similar to this running as a frontscript which will report the previously focused object by calling a PreviouslyFocusedObject() function. This would work similar to the "send in time" technique I'm using now but it means moving the logic into a global space rather than within the control that is losing focus.

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.

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to