Disables and greys out a menu item added with the AppendItem macro.
Syntax
DisableItem("item-id")
DI("item-id")
Parameter | Description |
item-id | Identifier assigned to the menu item in the AppendItem macro. The item ID must be enclosed in quotation marks. |
Example
The following macro disables the Example marker that was created in the AppendItem macro example:
DisableItem("mnu_example")
Comments
You cannot use this macro to disable a menu item in a topic until the item has been enabled using the EnableItem macro.
Windows Help ignores this macro if it is executed in a secondary window.
See Also
AppendItem, ChangeItemBinding, CheckItem, DeleteItem, EnableItem, InsertItem, InsertMenu, UncheckItem