HideMenuItem command

The HideMenuItem command hides an item with the specified menu item ID or multiple items from the specified IDs range. If the menu item opens submenu, this command hides submenu too.

 

Syntax

Integer=MenuItemID

PluginSet("PlugIn","Integer")

PluginRun("PlugIn","HideMenuItem")

or

String$='IDsRange1, IDsRange2, ..., IDsRangeN'

PluginSet("PlugIn","String$")

PluginRun("PlugIn","HideMenuItem")

Parameters

MenuItemID

[in] Associated with menu item unique identifier or submenu handle if menu item opens submenu. See CreateMenuItem command.

IDsRange

[in] Used to perform quick hiding of multiple items. IDs range is a string value that could be represented in this way: 'range_start % range_end' where range_start and range_end are menu item identifiers. IDs range can be degenerated - simply represented only by one identifier (submenu handle or item identifier): 'range_start'.

Remarks

Hide all menus in the menu bar to make menu bar hidden.