Sets the command to be hidden, visible, enabled, or disabled. This method can have an effect on the context menu (and top pane), menu bar, task area, or all of them.
Visual Basic |
---|
Public Sub SetCommandState( _ ByVal command As Long, _ ByVal location As CommandLocation, _ ByVal state As CommandState _ ) |
Value | Description |
---|---|
CommandLocation_All | Refers to all locations. |
CommandLocation_ContextMenu | Refers to the context menu and the Create button in the top pane. |
CommandLocation_MainMenu | Refers to the menu bar. Press Alt to show the menu bar in M-Files Desktop. |
CommandLocation_TaskPane | Refers to the task area. |
CommandLocation_Undefined | Undefined value. |
Value | Description |
---|---|
CommandState_Active | The command is visible and it can be used. |
CommandState_Hidden | The command is not visible. |
CommandState_Inactive | The command is visible but it cannot be used. |
CommandState_Undefined | Undefined value. |