HyperNext Studio

HyperNext Studio => General => Topic started by: carlk on January 21, 2011, 04:38:26 PM

Title: Quitting
Post by: carlk on January 21, 2011, 04:38:26 PM
Why, when I quit my stand alone application, do I get an annoying message that says "Quitting" which I then have to dismiss by clicking on "OK" before it will quit?
Title: Re: Quitting
Post by: Malkom on January 22, 2011, 06:03:02 AM
Quote from: "carlk"
Why, when I quit my stand alone application, do I get an annoying message that says "Quitting" which I then have to dismiss by clicking on "OK" before it will quit?
This is because there is a message in the menu quit handler announcing that the Quit handler has been called.

The Menu Designer can be accessed via the menu Windows pulldown.
Once the Menu Designer has opened select the File and sub option Quit - then select the Script button to edit the handler's script.

By default it has the Quit command in it which saves the programs state automatically.
The QuitSave command overrides the default save option.

Code: [Select]
@ Quit and save state
QuitSave(1)


@ Quit and do not save state
QuitSave(0)
Title: Re: Quitting
Post by: carlk on January 22, 2011, 06:14:20 AM
Thanks.  I hadn't really looked at the Menu Designer stuff yet, but I have just deleted the message.