Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple menu question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00094540
Message ID:
00094623
Vues:
22
>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
Fil
Voir

Click here to load this message in the networking platform