Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Managing form specific menu
Message
From
13/07/1998 12:55:11
 
 
To
13/07/1998 12:12:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00116804
Message ID:
00116828
Views:
13
This works, except I was hoping to have the menu disappear/reappear when I clicked on other forms. The only way I could get it to work was:

*Activate
IF !THISFORM.MenuActive
PUSH MENU _msysmenu
DO menu1.mpr
THISFORM.MenuActive = .T.
ENDIF

*Deactivate/Destroy
IF THISFORM.MenuActive
POP MENU _msysmenu
THISFORM.MenuActive = .F.
ENDIF

This seems to work, but I feel like I'm doing things wrong, since I'm having to run the menu many times. Also, the deactivate events don't fire 1:1 with the activate events, so I have that form prop (MenuActive) to keep things sync'd.

Bob

>Bob,
>I don't play with menus much but I think it should be something like :
>*Init
>Push menu _msysmenu && or menuname
>do newmenu.mpr
>*destroy
>pop menu _msysmenu
>Cetin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform