setInterfaceEnabled

Enables or disables the menu, menu item, or toolbar button that launches the custom interface.

Syntax

setInterfaceEnabled (interfaceObject, enable, menuItem);

Parameters

  • interfaceObject - (Object) Object that launches the custom interface.
  • enable - (boolean) True to enable, or false to disable, the menu, menu item or toolbar button that launches the custom interface.
  • menuItem - (string) (Optional) The unique identifier (name) of a menu item. If not specified, the method enables or disables the entire menu or the toolbar button; if specified, the menu item is enabled or disabled.

Returns

None