Page 1 of 1

Detect window closing

Posted: Fri Aug 29, 2003 1:17 pm
by Blade
Hello, I wish to execute a procedure when the program quits.
I can detect the "close gadget" event, but if the user press "alt-F4", what can I do?
In other basics I could intercept the "close application" (sort of) event...

Posted: Fri Aug 29, 2003 1:22 pm
by freak
On ALT+F4, you get an #PB_EventCloseWindow Event out of
WitWindowEvent() or WindowEvent().

Just the same, as if somebody clicks on the 'X' of the window.

Timo

Posted: Fri Aug 29, 2003 2:46 pm
by Blade
Thanks, I simply wrote wrongly the event detection... :)