Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling and Releasing Menus from Forms
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Calling and Releasing Menus from Forms
Divers
Thread ID:
00031001
Message ID:
00031001
Vues:
80
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
Répondre
Fil
Voir

Click here to load this message in the networking platform