Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining hot keys usimg invisible menus
Message
De
18/04/2001 15:56:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00496930
Message ID:
00496954
Vues:
10
>>Isn't there a way to define a global hot key (similar to an ON KEY LABEL) by defining a menu but never showing the menu? I want the user to be able to hit a hot key to retrieve information about the active form. This would have to work for modal forms, as well.
>>
>>Thanks,
>>Elyse
>
>Elyse,
>The short answer is no. Accelerators (menu hot keys) are not active if the menu option is disabled or invisible. If you don't want to go with the ON KEY LABEL approach, you could set up your forms with the KeyPreview property set to .T. and in the KeyPress event of your forms, do something if the correct key is pressed.
>
>HTH.


Larry,

It sure does work:
DEFINE POPUP nosee
DEFINE BAR 1 OF nosee PROMPT "" KEY CTRL+R
ON SELECTION BAR 1 OF nosee WAIT WINDOW "Here I am!"
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform