AW: difference between closing with the red cross or sending close?
Tiemo Hollmann TB
toolbook at kestner.de
Tue Oct 14 08:41:15 CDT 2008
sometimes the basics are the hardest :) I want to be able to close my stack
by the standard "red cross" AND also by one of my self made menu items
Using "on closeStackRequest" traps the standard closing by the cross and
after answering "yes" the stack closes. BUT sending "closeStackRequest" from
my menu and answering "yes", nothing happens. But always when picking a
second time the close menu and answering "yes" the stack closes.
Using "close myStack" in my menu didn't worked as expected either (as posted
So what is the straight forward way to close from the title bar and a self
made menu with an answer trap?
> Hello Eric,
> yes that was also my first thought, but as the docs say (and how this one
> behaves) it is not called, if I send my own "close stack" from my own menu
> (not from the rev file menu)
> > -----Ursprüngliche Nachricht-----
> > Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> > bounces at lists.runrev.com] Im Auftrag von Eric Chatonet
> > Gesendet: Freitag, 10. Oktober 2008 17:18
> > An: How to use Revolution
> > Betreff: Re: difference between closing with the red cross or sending
> > close?
> > Bonjour Tiemo,
> > Have a look at the closeStackRequest message:
> > on closeStackRequest
> > answer "Do you really want to quit?" with "No" and "Yes"
> > if it = "Yes" then pass closeStackRequest
> > end closeStackRequest
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode