Ive recently foun some befinner topics and questions by friends. They asked how to close a window without reseting its content. Easy, just use "Hide" instead of close. But still, if the user presses the close box, it will close instead. Following script for beginners does avoid this:
Function CancelClose(appQuitting as Boolean) as Boolean
If not appQuitting then return true
Thats it. I made it just for beginners, because the advanced most likely found it out already
Put it into the window cancelClose event.