Closing a Map With The close button

BlitzMax Forums/BlitzMax Programming/Closing a Map With The close button

Twinprogrammer(Posted 2012) [#1]
Hello,

Could you close an app with the close button ( The button on windows with the X on it ) ?

Twinprogrammer


Kryzon(Posted 2012) [#2]
The "X" or Close button won't end your application if you click it, but you can code your app so that it closes when this button is pressed.

Consult the AppTerminate() function.

It returns True if the user has clicked the "X" at least once.
When it returns True you should end the app as soon as possible.


Twinprogrammer(Posted 2012) [#3]
Alright , Thanks !!!

Twinprogrammer