Partager via


SET SYSMENU Command

Enables or disables the Visual FoxPro system menu bar during program execution, and allows you to reconfigure it.

SET SYSMENU ON | OFF | AUTOMATIC | TO [MenuList] | TO [MenuTitleList]
   | TO [DEFAULT] | SAVE | NOSAVE

Parameters

  • ON
    Enables the main Visual FoxPro menu bar during program execution when Visual FoxPro is waiting for keyboard input during commands such as BROWSE, READ, and MODIFY COMMAND.

  • OFF
    Disables the main Visual FoxPro menu bar during program execution.

  • AUTOMATIC
    Makes the main Visual FoxPro menu bar visible during program execution. The menu bar is accessible and menu items are enabled and disabled as appropriate for the current command.

    AUTOMATIC is the default setting.

  • TO [MenuList]TO [MenuTitleList]
    Specifies a subset of menus or menu titles for the main Visual FoxPro menu bar. The menu or menu title list can contain any combination of menus or menu titles separated by commas. The internal names for the menus and menu titles are listed in the System Menu Names topic.

    For example, the following command removes all menus from the main Visual FoxPro menu bar except the File and Window menus:

    SET SYSMENU TO _MFILE, _MWINDOW
    

    Use RELEASE BAR to specify the menu items available in the menus.

  • TO [DEFAULT]
    Restores the main menu bar to its default configuration. If you have modified the main menu bar or its menus, issue SET SYSMENU TO DEFAULT to restore it. You can specify a default configuration with SET SYSMENU SAVE.

  • SAVE
    Makes the current menu system the default configuration. If you modify the menu system after issuing SET SYSMENU SAVE, you can restore the previous configuration by issuing SET SYSMENU TO DEFAULT.

  • NOSAVE
    Resets the menu system to the default Visual FoxPro system menu. However, the default Visual FoxPro system menu is not displayed until you issue SET SYSMENU TO DEFAULT.

Remarks

SET SYSMENU controls the main Visual FoxPro menu bar during program execution and lets you selectively remove menu titles and menus from and restore them to the main Visual FoxPro menu system.

Issuing SET SYSMENU TO without additional arguments disables the main Visual FoxPro menu bar.

See Also

System Menu Names | POP MENU | PUSH MENU | RELEASE | SYS(2013) – System Menu Name String