Application window close button question?

BlitzMax Forums/BlitzMax Beginners Area/Application window close button question?

Lillpeter(Posted 2010) [#1]
This may be a silly little question but i havenīt found any info on it. Iīve written a small application in Blitzmax running in a window (on windows 7). Iīve made a "close/quit" button in the actual application, but how do i get the close/quit button in the upper right corner of the window to work? The minimize button works, but not the x button.

/Peter


Czar Flavius(Posted 2010) [#2]
Put in your update loop,
If AppTerminate() Then End


Lillpeter(Posted 2010) [#3]
Hah, I suspected it was something very simple. Thanks!


therevills(Posted 2010) [#4]
Or make your loop depend on it:

While Not AppTerminate()

Wend