0 Replies Latest reply on Dec 5, 2012 6:31 AM by Vinny

    Controlling How the App Closes

    Vinny

      Title

      Controlling How the App Closes

      Post

           Hi,

           My desire is to have the application handle closing in the following way:

           1) Do not close when last window closes if using the "x" on the last open window (i.e. not the master "x" on the application).

           2) If clicking exit from file menu (will be a custom menu), or the "master" close button, first prompt user, then close the entire application.

           - I was thinking of using a trick like hiding a window off the screen so that the app will stay open.  Or even going back to the "home" layout any time all windows close.

           BUT - I cannot find a way to distinguish between the application "X" and the window "X" buttons.

           Any Ideas?  This is basically like trying to emulate a typical windows style application - the menu and main window stay open even when the child windows are all closed.

            

           Thanks!