OlapMenuFlags

Analysis Services Programming

Analysis Services Programming

OlapMenuFlags

The OlapMenuFlags enumeration provides constants for the modes of menu items in the Analysis Manager tree pane.

Constant Description
mnuflagChecked Indicates that a check mark is to be displayed next to a menu item.
mnuflagDeleteKey Enables the Delete menu item. It also enables the Delete button on the toolbar and the DELETE key on the keyboard.
mnuflagDisabled Disables a menu item. However, it will appear to be enabled. To fully disable a menu item, use the mnuflagGreyed flag instead.
mnuflagDoubleClick Reserved.
mnuflagF1 Reserved.
mnuflagGrayed Disables a menu item.
mnuflagInsertKey Reserved.
mnuflagNew Enables the New menu item as a pop-up menu. Menu items added with this flag appear as child menu items when New is selected from the OlapTreeNode parent menu.
mnuflagPopup Indicates that a newly defined menu item is a pop-up menu. Child menu items are displayed when the menu item is selected.
mnuflagRegular Places an item on the root menu of an OlapTreeNode.
mnuflagSeparator Indicates that the menu item is a separator bar.
mnuflagSubmenu Indicates that the menu item belongs to a child menu of the parent pop-up menu item.
mnuflagTask Enables the Task menu item as a pop-up menu. Menu items added with this flag appear as child menu items when Task is selected from the OlapTreeNode parent menu.
Remarks

These flags are commonly combined by adding them together using the addition operator or the logical OR operator.

Example

The following code identifies a menu item as a child menu item and then disables it, leaving its appearance unchanged:

mnuflagSubmenu OR mnuflagDisabled