Restores the specified menu bar definition that was placed on the stack with PUSH MENU.
POP MENU MenuBarName [TO MASTER] |
Parameters
- MenuBarName
- Specifies the name of the menu bar whose definition is pulled off the stack. The specified menu bar can be user-defined or the Visual FoxPro system menu bar.
- TO MASTER
- Restores the first menu bar definition pushed onto the stack, and then clears the stack.
Remarks
When used with PUSH MENU, POP MENU lets you save a menu bar definition, make changes to the menu bar definition, and then restore the menu bar definition to its original state.
Menu bars are placed on and removed from the stack in last-in, first-out order.
Menu definitions take up memory, so every POP MENU should have a corresponding PUSH MENU to make sure your application's memory usage does not grow unnecessarily.
Example
In the following example, the system menu bar definition is pushed to the stack and then modified. The original system menu definition is then restored by popping it off the stack.
В | Copy Code |
---|---|
PUSH MENU _MSYSMENU SET SYSMENU TO _MFILE, _MEDIT POP MENU _MSYSMENU |