General information
Category:
ActiveX controls in VFP
>Hi John,
>
>>then I try hiding it with HIDE MENU but keep getting the error "menu has not been defined with DEFINE MENU"
>
>This sounds like you do something like HIDE MENU Edit, or so. The Edit menu must be defined as a menu bar (not a shortcut menu) and the HIDE MENU command should take _MSYSMENU as the parameter. That's the menu bar at the top of the window. Maybe you could post your code?
>
>Christof
Hi Christof,
I've tried two ways to accomplish this
**forms load event
DO editmenu.mpr &&my custom menu with one menu pad and several items for
copy,cut,paste etc.
**forms init event
1. HIDE MENU _msysmenu &&This doesn't give me an error. The screen burps,
but the editmenu is still visible.
2. HIDE MENU editmenu &&This one gives me that define menu error
The menu I created (editmenu) is just a basic menu made from the designer with one pad and 6 items for VFP edit functions.
As you can tell, I don't have a lot of experience with manipulating menus etc.
John.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only