Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting menu pad
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00058860
Message ID:
00058869
Vues:
34
>I'm using VFP 5.0a
>
>When form A is active, I want to display Menu1.MPR, Menu2.MPR, Menu3.MPR and Menu4.MPR
>
>When form B is active, I want to display Menu1.MPR, Menu3.MPR and Menu4.MPR
>
>Is there a way to completly remove a menu pad (not just disable it) from the menu without regenerating the whole menu?
>
>Inversely, is there a way to insert a menu pad between two existing menu pads without regenerating the whole menu?
>
>The reason I ask this, is that Menu3.MPR is actualy the equivalent of the Window menu pad found in the VFP menu bar. I add the list of actives form on it and I don't want to regenerate it everytime the user switch forms.

There are a couple of ways, I think to approach this. Since this involves only one pad difference, the way I'd do it is this:

I'd first use one menu for form A with all four menu pads. When form B becomes active, I'd:

PUSH MENU _MSYSMENU
RELEASE PAD [pad2titlename] OF _MSYSMENU

When form A reactivates:

POP MENU _MSYSMENU

hth,

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform