GetKeyState with K_ALT_F4

GetKeyState with K_ALT_F4

Postby Silvio.Falconi » Wed Apr 22, 2020 12:07 am

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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 75 guests