Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting shift key down when selecting an item
Message
De
25/09/1998 14:30:49
 
 
À
23/09/1998 19:52:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00140123
Message ID:
00140949
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform