Activate Menu, Deactivate Menu, Activate Popup, Deactivate Popup
These commands do exactly what their names suggest. They turn on and off menu bars and menu popups. You're unlikely to ever need to issue the MENU versions of these commands—the Menu Designer handles all that. You might use the POPUP versions for context menus, but even there, mostly the Menu Designer takes care of this stuff.
Usage |
ACTIVATE MENU MenuName [ NOWAIT ] [ PAD PadName ] ACTIVATE POPUP PopupName [ AT nRow, nColumn ] [ BAR nMenuItemNumber ] [ NOWAIT ] [ REST ] DEACTIVATE MENU MenuList | ALL DEACTIVATE POPUP PopupList | ALL |
Example |
* We wouldn't really do this in VFP though we did things * like it all the time in FoxPro 2.x. USE Employee DEFINE POPUP EmpPop PROMPT FIELD ; TRIM(First_Name) + " " + TRIM(Last_Name) ON SELECTION POPUP EmpPop DO Whozat ACTIVATE POPUP EmpPop AT 0,10 RELEASE POPUP EmpPop PROCEDURE Whozat WAIT WINDOW "You picked " + PROMPT() DEACT POPUP EmpPop RETURN |
See Also |
Define Menu, Define Popup, Menus, On Selection Menu, On Selection Popup, Release Menus, Release Popups |