Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run menu as replace or before depending on user rights
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Run menu as replace or before depending on user rights
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01358232
Message ID:
01358232
Vues:
79
I have an application that has a main menu, then certain menus get added based on user rights. The issue is now the user wants the following.

One of the menus is called reports. In the normal scheme of things, if a user has access to it, set by user rights, the menu is placed before the window prompt in the main menu.

Now the user wants to isolate the reports menu from the rest, i.e. only the reports menu would show.

To me this means that I want to replace the main menu ala
SET SYSMENU TO
SET SYSMENU AUTOMATIC
DEFINE PAD _2hz19kasq OF _MSYSMENU PROMPT "\<Reports" COLOR SCHEME 3 ;
	KEY ALT+R, ""
instead of
DEFINE PAD _2ch0oi2dv OF _MSYSMENU PROMPT "\<Reports" COLOR SCHEME 3 ;
	BEFORE _MWINDOW ;
	KEY ALT+R, ""
which is the normal way it presently works.

How do I programmatically switch between the two? (I have a property defined on my user object, that states which type of reports menu it wants)

TIA,
Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform