[TIP] Focus on custom dialogs (or any window/stack launched from a button)

Stephen Barncard stephenREVOLUTION at barncard.com
Thu Feb 23 16:36:31 EST 2006


I'm in the process of completing several custom dialog boxes. One in 
particular has been troublesome .

I have this handler that brings up a custom modal dialog and it's 
wired pretty much by the book and it works perfectly from the message 
box, even with the 'as sheet' option enabled. However, it seems as if 
there's a problem when the handler is invoked from a button.

What happens is the focus on the launched dialog is <NOT> on itself. 
One must basically click to select the dialog and another time to 
initiate any changes. Annoying and unresponsive. Not the way its 
supposed to work.

SOLUTION --- after a few test-stacks, etc.

Make sure the button uses the  mouseUP event to start the handler, 
not mouseDown!

and all will be well.

sqb



-- 
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



More information about the use-livecode mailing list