Disable menu items in interface


  
 Applies To 
  
 Product(s):MicroStation
 Version(s):08.11.07.171
 Environment: N\A
 Area: GUI
 Subarea: General
 Original Author:Bentley Technical Support Group
  

Problem

Disable menu items in interface

How to disable (gray out) existing menu items in the interface of MicroStation V8i?


Product: MicroStation V8i
Version: 08.11.07.115
Area: UI Customization

Solution

Add Enable/Disable Test with value False

To disable menu items in the MicroStation V8i interface:

01. Open/create a configured Interface Library
      (a *.dgnlib, that is included in configuration variable: MS_GUIDGNLIBLIST).
02. Open the Customize dialog, Workspace > Customize.


03. Expand the MenuBar section in the right half of the dialog.
04. Browse to the menu item to hide and select it.
05. Right click on it and select Copy from the context menu, or click the Copy button.
06. Select the menu item one level "up". (E.g. in the Help menu, after you made a copy of the Be Communities item, select the Help menu).
07. Right click and select Paste from the context menu, or click the Paste button.
08. Drag the pasted item (in green) to a position below the original item.
09. Right click on the new item and select Add > Enable/Disable Test.
10. Select the Enable/Disable Test in the General Settings section in the bottom of the dialog and click the down arrow shown to the right of it.
11. Choose "Inline Expression" from the Name drop down list, and type False in the Expression field. Click OK.
12. Select the original menu item (in black).
13. Right click and select Delete from the context menu, or click the Delete button.

The rule whether to enable the menu item (step 11), can also be conditional.
More information is in the help file under Named Expressions.

To completely remove an item from the menus, skip steps 5 to 11 and only execute steps 1-4, 12 & 13.

See Also