Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run menu as replace or before depending on user rights
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Run menu as replace or before depending on user rights
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01358232
Message ID:
01358232
Views:
80
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
Next
Reply
Map
View

Click here to load this message in the networking platform