Processing Ctrl-click

Processing Ctrl-click

Postby Rafael Clemente » Fri Mar 10, 2006 8:45 am

How can I detect when a Ctrl-click has been pressed?. Or, for that matter, Alt-Click or Shift-click. I imagine that it should be something like:

oWnd:bLClicked := {|| MsgInfo("Clicked!")} but I don't knok how to handle the Ctrl or Alt flags.

Any suggestions? Thanks
Rafael
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Re: Processing Ctrl-click

Postby Enrico Maria Giordano » Fri Mar 10, 2006 8:55 am

GetKeyState( VK_CONTROL )
GetKeyState( VK_MENU )

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Rafael Clemente » Fri Mar 10, 2006 9:22 am

Thanks a lot, Enrico
Rafael
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain


Return to FiveWin for Harbour/xHarbour

Who is online

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