Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining hot keys usimg invisible menus
Message
From
18/04/2001 15:56:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00496930
Message ID:
00496954
Views:
11
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform