Page 1 of 1

GetKeyState with K_ALT_F4

Posted: Wed Apr 22, 2020 12:07 am
by Silvio.Falconi
on a dialog I insert

ON INIT ( oDlg:bValid := { || !GetKeyState( VK_ESCAPE ) },; run ok

but I wish block also alt+f4 (K_ALT_F4)

GetKeyState accept more parameters ?

I make ON INIT ( oDlg:bValid := { || !GetKeyState( VK_ESCAPE ) .and. !GetKeyState( K_ALT_F4 ) },;

and it make error not found K_ALT_F4