Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menus: The proper way to call and release from forms.
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Menus: The proper way to call and release from forms.
Miscellaneous
Thread ID:
00031072
Message ID:
00031072
Views:
91
Does anyone have any thoughts on the proper way to call and release a menu item from a form? Currently, I'm doing:

push _msysmenu
do menus\mymenu.mpr

on the init of the form and:

pop _msysmenu

on the destroy of the form. Is there anything wrong with this? Also, I was playing with the SKIP clause for the menu item in the menu designer. What could I place there to disable (grey out) the menu item when the form is open, but no longer has focus? I tried using:
"_screen.activeform.name<>'myformname'"

but, this gives an error on form init because there is no current activeform as of yet. How would this be resolved?
I think I posted something similar to this earlier, but I'm not positive so if I am, just kick me.

Michael G. Emmons
memmons@nc.rr.com
Next
Reply
Map
View

Click here to load this message in the networking platform