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
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01358232
Message ID:
01358241
Views:
19
I figured it out....

Add the code for the necessary system menu pads to startup code of the reports menu, and voila - executes and displays it. This is a better solution than the oop menu one as it takes the least amount of code changes to the present app and works with present security. If they need more functionality than that, then I will investigate the oop menu option.

Thanks to Naomi..
Mike

>I think we need object oriented menu to achieve your goal.
>
>See Message #1355699
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform