Home > Plug-in Development > How to add a button to the DXCore Visualize toolbar

How to add a button to the DXCore Visualize toolbar

September 17th, 2010

To place a new button on the DXCore Visualize toolbar, all you need to do is to add a new DXCore Action component on your plug-in design surface, and adjust its ToolbarItem properties group:

DXCore Visualize Toolbar item properties

Here’s the ToolbarItem properties description table:

Property Name Description
BeginGroup Indicates whether a button should start a new group of buttons (add a separator before this button).
ButtonIsPressed Boolean state of the button (up or down, pressed or unpressed).
Caption Caption (hint) describing a button on the Visualize toolbar.
Image Image used to represent a button on the Visualize toolbar.
Index Index (position) of the button on the Visualize toolbar.
PlaceIntoToolbar Indicates whether to place this action as a new button to the Visualize toolbar.

At least three properties of the Action must be initialized: PlaceIntoToolbar, Image, and Caption (optional):

DXCore Visualize Toolbar item properties changed

That’s it. After that your new button appears on the DXCore Visualize toolbar. Don’t forget to handle the Execute event of the Action to perform some actions when the button is clicked:

DXCore Visualize Toolbar new button

—–
Products: DXCore, CodeRush
Versions: all
VS IDEs: any
Updated: Nov/04/2010
ID: D010

Similar Posts: