Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect CTRL+CLICK MOUSE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00681517
Message ID:
00683022
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform