PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Alt + F4
Alt + F4
Started by fernando, Jan., 22 2021 7:33 PM - 1 reply
Posted on January, 22 2021 - 7:33 PM
hello a question disable Alt + F4 keys in a window so that it does not close, thanks
Registered member
22 messages
Popularité : +2 (2 votes)
Posted on January, 23 2021 - 12:54 AM
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