>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