General information
Category:
Menus & Menu designer
>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
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