Class CommandBarButtonGroup
Represents a dynamic set of menu buttons
Inherited Members
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class CommandBarButtonGroup : CommandBarControl
Constructors
CommandBarButtonGroup(String)
Creates a CommandBarButtonGroup with a specific ID.
Declaration
public CommandBarButtonGroup(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | Control ID |
Remarks
The ID can be null, which creates a group that will not be added
to the UIEnvironment.CommandBarControls collection.
If you specify an ID, prefix it with the name of your Add-In, to avoid conflicts.
See Also
Properties
HandleButtons
Specifies how CommandBarButton objects in the group are handled. If false, the button's UpdateCommandUI event is raised when the group is displayed, and the button's ExecuteCommand event is raised when the button is clicked. If true, the button's state is decided when it is added, and the groups ExecuteCommand event is raised when the button is clicked.
Declaration
public bool HandleButtons { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
FromID(String)
Returns the CommandBarButtonGroup that has the specified Id, or null if none exists.
Declaration
public static CommandBarButtonGroup FromID(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | Id to find an object for |
Returns
Type | Description |
---|---|
CommandBarButtonGroup | The CommandBarButtonGroup with the specified ID |
Remarks
This is the same as UIEnvironment.CommandBarControls[id] as CommandBarButtonGroup
Events
DisplayCommandGroup
Raised before the command group is shown, giving clients the chance to populate it with buttons
Declaration
public event DisplayCommandGroupEventHandler DisplayCommandGroup
Event Type
Type | Description |
---|---|
DisplayCommandGroupEventHandler |
ExecuteCommand
This event is raised when the user selects one of the items in this CommandBarButtonGroup
Declaration
public event CommandGroupExecuteCommandEventHandler ExecuteCommand
Event Type
Type | Description |
---|---|
CommandGroupExecuteCommandEventHandler |