Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting SHIFT or CTRL Key pressed
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00821373
Message ID:
00821661
Views:
16
Caroline,

Thank you for your suggestion. That put me on the right track of reading about WIN32API and the GetKeyState function.

Elgin

>Elgin,
>Check out the GetKeyState API
>
>Declare short GetKeyState in Win32API integer nKey
>
>#define cnControlKey  0x11
>#define cnShiftKey	    0x10
>
>
>*-- Check out the Shift key state.
>llShiftKey = GetKeyState(cnShiftKey)<0
>*-- Check out the Control key state.
>llControlKey = GetKeyState(cnControlKey)<0
>
>HTH
>Caroline
>
>>I have a grid where in two of the columns I set the DblClick() method of the contained TextBox to a custom method on the form, ThisForm.FieldMerge().
>>
>>However I do not want the method to execute unless the user is holding down either the SHIFT or CTRL key, and depending on which of the two they are pressing while doubleclicking I want to do one of two CASE statements in my custom method.
>>
>>How do I detect which key is "held down" at the time of the DoubleClick. I've read the INKEY(), Keypress, LASTKEY(), etc stuff, but I'm not understanding what is needed.
>>
>>Thank you.
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Previous
Reply
Map
View

Click here to load this message in the networking platform