How to tell if a modal dialog is open?

J. Landman Gay jacque at hyperactivesw.com
Mon Feb 13 15:59:40 EST 2006


Peter T. Evensen wrote:
> Is there any way to tell if a modal dialog is open?  I mean, apart from 
> setting a flag before you do a modal stack "modal dialog" or looking for 
> "modal dialog" in the open stacks?
> 
> the topStack won't return a modal dialog.
> 
> I'm sure I'm just overlooking something simple.

You can check the mode property of a stack to see. The mode of a "modal" 
stack is 5.

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



More information about the use-livecode mailing list