FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oWnd:bKeyDown
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
oWnd:bKeyDown
Posted: Mon Nov 05, 2007 06:43 PM

I would like to find out if the control key is press.
I tried like that but it doesn't work:
Thanks in advance,
Otto

oWnd:bLClicked := { |y,x,flags | test() }

func test
if oWnd:bKeyDown() = VK_CONTROL

else

endif

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
oWnd:bKeyDown
Posted: Mon Nov 05, 2007 06:54 PM

I find a solution with:
if GetKeyState( VK_CONTROL )
else
endif

Continue the discussion