Customize Commands

The Enterprise Architect toolbars provide a wide range of functions, some of which are useful in several different contexts. You might find it convenient to have a function command available from a different toolbar to the one it is currently set in; therefore, you can customize which toolbar a command is available on. You do this by generating a button or icon for the command on either an existing toolbar or a new toolbar that you create for this purpose; conversely, you might remove a command from its current toolbar. You can also have the same command on more than one toolbar.

AccessTools | Customize > Commands

Manage Toolbar Commands

Task

Action

See also

Add Command To Toolbar

Display the appropriate toolbar, using either:

•

View | Toolbars (for standard toolbars) or

•

Tools | Customize > Toolbars (for custom toolbars)

On the Commands tab:

1.

Click on the appropriate command category in the Categories: panel.

2.

Click on the command you need from the list in the Commands: panel.

3.

Drag the command onto the toolbar.

4.

Add any further commands you want.

5.

Put the icons in the order you prefer, by dragging each icon into position.

6.

Click on the Close button to close the Customize dialog.

7.

If necessary, resize the toolbar or drag it back into the top of the screen.

If the command has an associated icon, the icon displays in the toolbar; otherwise, the command name displays.

While the Customize dialog is displayed, right-click on the command icon or text in the toolbar, and select the Delete context menu option.

The context menu does not display if the Customize dialog is closed.

Change or assign icon for command

All commands listed in the Customize dialog have a text label, and many have associated icons, either system-defined (default) or user-defined. If the command has an icon, you can select to represent the command in the toolbar by:

•

The icon

•

The text

•

Both together

You have a range of other options for changing how the command is represented in the toolbar, such as:

•

If the command does not have an associated icon, assign one from an image library

•

Change the icon currently assigned to the command to a different icon

•

If the command has a system default icon and you have changed it, restore that default icon to the command

•

Edit the icons in the library, and create new ones; you can also copy an existing icon and edit the copy

These options are available through a context menu that you display by right-clicking on the icon in the toolbar while the Customize dialog is displayed. The context menu does not display if the Customize dialog is closed.

The changes apply only to the selected toolbar. Any instances of the command in other toolbars or menus are not affected.

If the option has an icon, the selected change is made. If the command has no icon, the Button Appearance dialog displays (see below). You can also toggle between the image/text options on this dialog.

Select either the Image only radio button or the Image and text radio button.

4.

For a command with a default icon, the Use Default Image radio button is followed by the default icon; if you have assigned a different image, you can restore the default by selecting this radio button.Otherwise, select the Select User-defined Image radio button, and click on an appropriate image from the selection provided. You can add or edit images in this selection (see below).

5.

Click on the OK button to apply the changes to the toolbar.

(You can also restore the default icon by right-clicking on the current icon in the toolbar and selecting the Reset to default context menu option.)

Copy a toolbar icon

1.

Right-click on the icon in the toolbar.

2.

Select the CopyButton Image context menu option; the image is copied to the clipboard.