"X" button closing the window

Blitz3D Forums/Blitz3D Programming/"X" button closing the window

Warren(Posted 2005) [#1]
I would have searched for this but the search appears to be down right now.

Is there a way to detect, in Blitz3D, that the user has clicked the red "X" button in the top right corner? I'd love to catch that event and save their game if possible...


fredborg(Posted 2005) [#2]
http://www.blitzbasic.com/codearcs/codearcs.php?code=832

(The Code Archives really need a search function!!!)


Rhyolite(Posted 2005) [#3]
Nice one Fredborg, thanks for posting link.

(yes, i agree 100%)

Rhy :)


Warren(Posted 2005) [#4]
That looks cool, fredborg, thanks!

I might as well ask though ... Is there any other way? This way will probably work fine but I don't like the idea of having to add yet another DLL file to my distribution.


simonh(Posted 2005) [#5]
I don't think there's any other way. You can use Molebox to add the DLL to the exe if you wish to do so.