CloseCard Handler

Richard Gaskin ambassador at fourthworld.com
Thu Jun 2 13:32:47 CDT 2011


Warren Kuhl wrote:

> When the user closes the application, I have a check in place within
> the on closecard handler to see if they saved the document.  If they
> didn't save the document, I give the user to option to save, don't
> save or cancel.  On the cancel, I just want the application to stay
> open.  Within the on closecard handler, I have a exit closecard
> command when the user selects cancel.  The application stil closes.
>
> Is there a way to bypass the close at this point?  If not, how can I
> get around this if the user closes the application by closing the
> window?

The message you're looking for is closeStackRequest.


--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv



More information about the use-livecode mailing list