Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Trapping For Alt-F4 On Exit

$
0
0
Hi All

I have managed to successfully trap for X button on the window being pressed and then instead making the app invisible and putting it into the system tray. The code for this is in a button that has the Alt-F4 key assigned to as the alert key. I have also managed to assign a popup menu to the icon. The one option is to restore the app. The other is to exit the app. If the app is restored and the user presses the X button again the button is ignored and the code in the button does not fire. It is as if the Alt-F4 key is no longer trapped by the button code. Why would this be? Are there any tricks?

Cheers
Andre

Viewing all articles
Browse latest Browse all 1914

Trending Articles