Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling and Releasing Menus from Forms
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Calling and Releasing Menus from Forms
Miscellaneous
Thread ID:
00031001
Message ID:
00031001
Views:
77
Could someone give me the low-down on the proper way to call and release a menu item from a form? Each form I have calls a specific menu item. When the form looses focus or is destroyed that menu item is released. First, I had the following code in my gotfocus, lostfocus, and destroy:

GotFocus:
push menu _msysmenu
do menus\offers.mpr

LostFocus & Destroy:
pop menu _msysmenu

With this, however, I encountered odd errors every now and then. So, I have changed my LostFocus & Destroy code to this:

deactivate menu offers
release menu offers extended
pop menu _msysmenu


Thus far, I haven't had problems with it, but if there is a better or more appropriate way to do this I'd like to hear about it.


Michael G. Emmons

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

Click here to load this message in the networking platform