Is there a way for the programmer to control what happens when the user clicks the main window's close button (the x at the top right)? Suppose, for example, I would like to perform some cleanup operations before calling exit. Or perhaps I would like to prompt the user to save something.
-Bones
-Bones