How to tell if a modal dialog is open?

Jonathan Lynch jonathandlynch at gmail.com
Mon Feb 13 16:13:32 EST 2006


Her method will allow you to do this...

The OpenStacks function will return all the open stacks, then you can go
through the list to check to see if any are modal.


On 2/13/06, Peter T. Evensen <pevensen at siboneylg.com> wrote:
>
> Hi, Jacque.
>
> I was really after a method to tell if any (unknown) modal stack is
> open.  topStack gives the top-most editable stack.  I was wondering if
> there was a way to tell if a modal dialog was being displayed.
>
> I figured out a way to do what I was trying to do (suspend and resume
> messages when a dialog comes up), so the question is more of an academic
> one right now.
>
> At 02:59 PM 2/13/2006, you wrote:
> >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.
>
> Peter T. Evensen
> http://www.PetersRoadToHealth.com
> 314-629-5248 or 888-628-4588
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list