Information générale
Catégorie:
Gestionnaire de menu & Menus
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement