FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GetKeyState with K_ALT_F4
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
GetKeyState with K_ALT_F4
Posted: 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 March-April 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

Continue the discussion