Enables or disables a menu, menu bar, menu title, or menu item for user-defined menus or the Microsoft Visual FoxPro system menu. There are several versions of the syntax.
SET SKIP OF MENU MenuBarName1 lExpression1 |
SET SKIP OF PAD MenuTitleName OF MenuBarName2 lExpression2 |
SET SKIP OF POPUP MenuName1 lExpression3 |
SET SKIP OF BAR nMenuItemNumber | SystemItemName OF MenuName2 lExpression4 |
Parameters
- MENU MenuBarName1lExpression1
-
Enables or disables the Visual FoxPro system menu bar or user-defined menu bar created with DEFINE MENU. For example, the Visual FoxPro system menu bar _MSYSMENU can be disabled with this command:
It can be enabled with this command:
В Copy Code SET SKIP OF MENU _MSYSMENU .T.
В Copy Code SET SKIP OF MENU _MSYSMENU .F.
- PAD MenuTitleNameOF MenuBarName2lExpression2
-
Enables or disables a Visual FoxPro system menu title or a user-defined menu title created with DEFINE PAD. For example, the Visual FoxPro Edit menu title can be disabled with this command:
The menu title can be enabled with this command:
В Copy Code SET SKIP OF PAD _MSM_EDIT OF _MSYSMENU .T.
В Copy Code SET SKIP OF PAD _MSM_EDIT OF _MSYSMENU .F.
- POPUP MenuName1lExpression3
-
Enables or disables a Visual FoxPro system menu or a user-defined menu created with DEFINE POPUP. For example, the Visual FoxPro Edit menu can be disabled with this command:
The menu can be enabled with this command:
В Copy Code SET SKIP OF POPUP _MEDIT .T.
В Copy Code SET SKIP OF POPUP _MEDIT .F.
- BAR nMenuItemNumber| SystemItemNameOF MenuName2lExpression4
-
Enables or disables a menu item on a Visual FoxPro system menu or a user-defined menu item created with DEFINE BAR. For example, the New command on the Visual FoxPro File menu can be disabled with this command:
where SystemItemName specifies the menu command
В Copy Code SET SKIP OF BAR _MFI_NEW OF _MFILE .T.
_MFI_NEW
, MenuName2 specifies the menu_MFILE
, and lExpression4 specifies the logical expression.T.
. The menu command can be enabled with this command:Use nMenuItemNumber to specify a menu item created with DEFINE BAR.В Copy Code SET SKIP OF BAR _MFI_NEW OF _MFILE .F.
Remarks
For a complete listing of the internal names of Visual FoxPro system menu components, see System Menu Names. You can also use SYS(2013) to return the system menu internal names.
If the logical expression lExpression evaluates to true (.T.), the menu, menu bar, menu name, or menu item included in SET SKIP OF is disabled, appears dimmed, and can't be selected. If lExpression evaluates to false (.F.), the menu, menu bar, menu name, or menu item is enabled and can be selected.