Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple menu question
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00094540
Message ID:
00094623
Views:
21
>I have many forms in my app but only one menu I call mainmenu. Based on user access rights I disable/enable each menu item in the menu designer. What I would like to do is have a seperate menu for each form. I've played around with push & pop menu and some other menu commands, but I can't get it to work quite right. what is the best approach to accomplish this? Thanks for any suggestions!!
>
>john.

Hi John,

I do exactly what you're after. I have labeled my menus according to the level
that they are show at. You can name yours anything. The key to how I'm doing
this is that in my form template, I have a property called nMenuLevel. In
the .Activate() event of that template I have the following;

lcMenu = "Level" + ALLTRIM(STR(THISFORM.nMenuLevel))
goApp.DoMenu(lcMenu)

Anytime a particular form activates, it automatically runs the menu I want.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform