Startbeitrag von André Labuschagné am 15.03.2017 20:33
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
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
Antworten:
Andre
von André Labuschagné - am 15.03.2017 20:37
von André Labuschagné - am 15.03.2017 20:44
Hope this helps others.
Cheers
Andre
von André Labuschagné - am 15.03.2017 20:59