The question could be returned.Warmonger wrote:Why is this exactly hard for you guys to understand.

When the event procedure would return #True if the window has been close and #False otherwise, you have the freedom to decide what you want to do with that.
You can exit the event loop so the application continues where you can clean up things and let the application end or you can ignore it.
I'm not asking for cleanup procedures.
You seem to think everyone wants an immediate exit when you hit a close window button and that is good coding practice.
There are lots of situations where you want to do other things first before the application closes.
Also when you look at the event, it doesn't even mention exiting the application. It only says that a window has been closed.
You have total freedom when using PureBasic to code a multi window application and you definitely don't want to terminate the application if one of the windows is closed.
On OS X it is even very common an application keeps running after closing all windows. The mail application for example does. You simple reopen a window by clicking the dock icon.