Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect CTRL+CLICK MOUSE
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00681517
Message ID:
00683022
Views:
28
I don't think you need to mess with the mouseup event. I've had good luck using in the click():

if GetKeyState(VK_SHIFT)<0 and GetKeyState(VK_CONTROL)<0
* Shift and Ctrl are down
endif

A click() for an object requires both a mousedown and mouseup to occur over the same object, and it occurs after the mouseup I think. If you use mousedown or mouseup, I think you can actually fire an event for an object that was only half-clicked.

>>IS 'SHIFT' THERE meant the SHIFT button in the keyboard or not...
>>
>>Cause what i meant is Combination between the keyboard and mouse....
>>
>>Where the keyboard is represent with CTRL key and the MOuse with LEFT CLICK
>>
>>
>>Is that the same with it....
>>
>>thanks....
>>
>>regards,
>>tut_arie
>
>On Click Events you do not have possibility to detect keyboard buttons. Use MouseDown or MouseUp events to trigger a flag, which you can use on Click events
Previous
Reply
Map
View

Click here to load this message in the networking platform