Closing Detection OR making it so you can't close window

edited November 2015 in How To...

I have 2 questions. ! <- will determine their priority................................................................................................................ !!! How do you make it so you can't close a game with the big X button. I want it to close if you clicked into a menu. I know the exit() thing and I need that so I can save the game with a print writer. That will be part of the other question, but how do I make it so you can't close a game with the [X] button on the top right of the window?...................................................................................................................................................................................

!! How do I detect if the window was closed? Like if you pressed the big [X] button.

Sign In or Register to comment.