Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu ShortCuts & Modal Forms
Message
 
To
25/08/1997 08:05:16
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00046647
Message ID:
00046651
Views:
25
>VFP 3.0, Win and Mac:
>I have an app with a standard edit menu which includes CTRL+S as a "save" hot key. There are two forms, however that need to be modal. Because I want consistant "save" shortcut functionality, I tried to intercept the code in the THISFORM.KEYPRESS() event. Even though other keypresses execute, the code for the CTRL+S does not even run when it hit CTRL+S.
>
>Two Questions:
>1. If a menu (and its shortcut) is disabled , does it disable the shortcut key combination?

yes

>
>2. Is there a way to put short cut type hot keys on a menu that is not enabled or visible?

for the modal forms, call the save method (same as the menu save) when ctrl S is pressed.
Previous
Reply
Map
View

Click here to load this message in the networking platform