Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Shift and Ctrl
Message
 
À
03/09/2001 13:28:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00551829
Message ID:
00552351
Vues:
48
>>Does anyone out there know of a way to get the state of either of these 2 keys.
>>
>>I have a window that reacts differently depending is the Shift key is pressed. This works just fine unless the user:-
>>1) releases the key in the window
>>2) switches to another window where they press the key in anticipation then
>>3) select the window that is looking for the Shift status
>>
>>there appears to be no way of knowing that they have the key pressed as they select the window.
>>
>>Anyone got a any thoughts?
>
>
>#define VK_SHIFT          0x10
>#define VK_CONTROL        0x11
>#define VK_MENU           0x12
>
>declare short GetKeyState in Win32API integer nVirtKey
>if GetKeyState(VK_SHIFT)<0
> * Shift is down
>endif
Cetin

Cetin

Thanks that looks brilliant and yet so simple!

Jeremy
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform