>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.