Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / intercepting window close - saving state at program end

Author
Message
TomToad
6
Years of Service
User Offline
Joined: 6th Jan 2018
Location:
Posted: 19th Aug 2019 17:25
Searched for a solution, but couldn't find any. My program needs to save the game state at program end. Problem is that if the window is closed by someone clicking the x in the corner, the program ends immediately, no chance to save the state.

Example

Press escape and the message box appears, press the x to close the window, message box does not appear.
Bored of the Rings
User Banned
Posted: 19th Aug 2019 19:09
Testing for Wm_close 0x0010. But you need to be able to communicate with the Gui, by receiving events and processing events. Doing this on phone so no access to my exampleproggy s
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others

Login to post a reply

Server time is: 2024-11-22 16:29:14
Your offset time is: 2024-11-22 16:29:14