Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing a menu
Message
From
27/07/1999 22:59:33
 
 
To
27/07/1999 22:33:20
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00246985
Message ID:
00247001
Views:
25
>Hi Mike,
>
>Ahhh, No luck with DEACTIVATE MENU...
>

How are you using DEACTIVATE MENU? You need to specify the name of Menu Bar created with the DEFINE MENU command, not with the name of the .MPR file that loads the menu bar. DEACTIVATE MENU should release the specified menu bar from the screen, but doesn't release the menu bar's definition and actions from memory; AFAIK, the only ways to clear the definition itself is with CLEAR MENUS (not terrily selective), DEACTIVATE MENU menu bar name followed by a RELEASE MENU menu bar name, which releases the menu bar but not its subordinate components and related ON statements in effect, or DEACTIVATE MENU menu bar name followed by a RELEASE MENU menu bar name EXTENDED, which releases not only the menu bar, but its subordinate components and related ON statements. The exact relationships are discussed in the on-line help.


For a simple example, if in MyMenu.MPR, I have a DEFINE MENU
>Thanks
>
>>Hi John,
>>
>>>When I put a menu up with DO MyMenu.mpr and the menu is checked to be added to the previous menu how do I release the menu when it is no longer needed. I have tried RELEASE, HIDE, and a few others...
>>
>>I'm not at a VFP system right now, but look at DEACTIVATE MENU or pad or bar or whatever it is.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform