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
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01358232
Message ID:
01358241
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform