Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting shift key down when selecting an item
Message
From
25/09/1998 14:30:49
 
 
To
23/09/1998 19:52:24
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00140123
Message ID:
00140949
Views:
22
>for the following shortcut menu example:
>
>DEFINE POPUP myPOP ;
> FROM MROW(), MCOL() ;
> SHORTCUT
>DEFINE BAR 1 OF myPop PROMPT "foo"
>DEFINE BAR 2 OF myPop PROMPT "bar"
>ON SELECTION POPUP myPop DO myPopSelect WITH PROMPT()
>ACTIVATE POPUP myPop
>
>FUNCTION myPopSelect( cPrompt )
> ** take action here
>
>
>... is there a way to tell if the shift key was held down when the user selected the bar. I am trying to build a developer's shortcut menu with some special functionality.
>
>Thanks
>
>Geno Prida
>Watson Wyatt Worldwide
>geno_prida@watsonwyatt.com

use the following:

declare SHORT GetKeyState in Win32API INTEGER Key
SHIFTKEY_hold = getKeyState(16) < 0
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform