>>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!"