Adds a standard push-style button.
Note: Toolbar changes may not be immediately reflected in STK. To force a toolbar reset, go to Edit > Preferences > UI Plugins. Select the current plugin, then click "Reset Toolbars."
| [Visual Basic .NET] |
|---|
Public Sub AddButton( _ ByVal CommandID As String, _ ByVal Title As String, _ ByVal Description As String, _ ByVal Options As AgEToolBarButtonOptions, _ ByVal PictureDisp As Picture _ ) |
| [C#] |
|---|
public void AddButton( |
| [Managed C++] |
|---|
public: void AddButton( |
| [Java] |
|---|
public addButton( |
| [Unmanaged C++] |
|---|
public: HRESULT AddButton( |
- CommandID
- A named command
- Title
- A text associated with the command. The text will be displayed in a tool tip.
- Description
- A text displayed in the status bar when a mouse is over the button.
- Options
Member Value Description eToolBarButtonOptionNone 0 No options. QueryState is called to determine button state. eToolBarButtonOptionAlwaysOn 1 Indicates the button state is always enabled. QueryState is never called. eToolBarButtonOptionNeedScenario 2 Indicates the button is disabled if no scenario is loaded. If a scenario is loaded, QueryState is called to determine button state. - PictureDisp
- An icon associated with the toolbar button. Can be null. If no icon is specified, the button will display the text specified by the Title parameter.
| Add a button to a custom toolbar | Copy Code | |
|---|---|---|
| ||
