PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Alt + F4
Alt + F4
Iniciado por fernando, jan., 22 2021 7:33 PM - 1 resposta
Publicado em janeiro, 22 2021 - 7:33 PM
hello a question disable Alt + F4 keys in a window so that it does not close, thanks
Membro registado
22 mensagems
Popularité : +2 (2 votes)
Publicado em janeiro, 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