Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to HIDE menu but keep CTRL-KEYS functioning in memor
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00146939
Message ID:
00148238
Views:
55
>You cand efine the menu and never activate it. A menu that is defined will respond to the Short cut keys even if it is not activated. I used to use this technique as a replacement for OKL's in the 2.x days.

You have to watch out for this though...

There are a number of bugs with this approach. I use this with ActiveBars
to replace the Fox menu, and your approach does not work with Top
Level forms. It only works with 'global' menus that don't belong
to a specific top level window.

The best way I've found is:
lcMenu = SYS(2015)
DO Menu.mpr with THIS, lcName
DEACTIVATE MENU (lcMenu)
which hides the menu. FWIW, HIDE MENU does not work here.

The above works, but if you press ALT or F10 the menu bar
will pop up. The menu will also popup if you run a Modal
Form and then come back to the top level form.

Talk about inconsistent behavior.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform