Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect Control Click
Message
 
 
To
27/03/2008 20:04:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01306353
Message ID:
01306359
Views:
4
This message has been marked as the solution to the initial question of the thread.
>I have a list box with several items in it. How does one determine if the user has clicked or control-clicked on one of the items.

You can use Windows API function GetKeyState to determine status of Ctrl key
* Click event
DECLARE SHORT GetKeyState IN WIN32API INTEGER
*#define VK_SHIFT    0x10
#define VK_CONTROL  0x11
IF GetKeyState( VK_CONTROL) < 0
  * Ctrl+Click
ENDIF
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform