Graphics() trap EVENT_WINDOWCLOSE
BlitzMax Forums/BlitzMax Beginners Area/Graphics() trap EVENT_WINDOWCLOSE
| ||
I've got graphics running in a window and I've attached an event hook. I can get APP_TERMINATE events and so forth, but when clicking on the window's close box I also get an APP_TERMINATE, is there any way to trap the window closing without having to re-code my graphics within a maxgui canvas and all that hassle? |
| ||
no there is no way to do that. The game window without maxgui windows will always close if the window is closed through some user interaction / external interaction. To make this clear: clicking the X will always terminate your application so the event you get is the right one and you better handle it equally |
| ||
dang, was hoping for a loop hole. Thanks for the info. |