PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Alt + F4
Alt + F4
Débuté par fernando, 22 jan. 2021 19:33 - 1 réponse
Posté le 22 janvier 2021 - 19:33
hello a question disable Alt + F4 keys in a window so that it does not close, thanks
Membre enregistré
22 messages
Popularité : +2 (2 votes)
Posté le 23 janvier 2021 - 00:54
In one of my projects I wanted the window to minimize instead of closing so what I did was:
1) On the window in question I created a button and moved it off the window so it wouldn't show when the window was showing.
2) In the description for the button, in the UI tab, I set the Hotkey to Alt+F4.
3) In the code for the button in the "Click on BTN_MyButton" event I placed the code Iconize(WindowName)

If my instructions above are not clear then please go to https://windev.com.au/resources.html, and in the left hand pane, click on Video 5.

Best Regards,
Geoff