Ide/Resource Editor/Editing a Toolbar

Editing a Toolbar
To edit a toolbar, double-click (or press Enter) the name of a file with a toolbar description in the project tree in the Project window's list of project files. The Toolbar Editor window appears and you can create whatever form of a toolbar you wish.



In the top of the picture you see edited toolbar (ProjectToolbar in the picture).

Controls Toolbar in the Toolbar Editor
In the bottom of the previous picture you see the Controls toolbar. Using the Controls toolbar you can easily add desired controls into the edited toolbar.

There are the Controls toolbar commands inserting the following kinds of controls into toolbars:

Control Types Used in Toolbars
In the lower part of the previous picture we see the toolbar, which contains all kinds of controls that can be used in toolbars.

Toolbar Layout Editing
The layout of the toolbar can be done both with the keyboard, and with the mouse. There is an insertion point that is marked with a colored bar. This insertion point can be moved with the arrow keys, or by clicking the mouse on the new location. When the insertion bar is at a given location, the control to the right of the bar can be deleted by pressing the Delete key, the control to the left can be deleted by pressing the Backspace key.

To place a new control at the insertion point:


 * select an item from the Controls menu or
 * choose a control from the ones shown in the Controls floating dialog or
 * click the right mouse button anywhere in the Toolbars Editor window area outside the toolbar to display a pop up from which a desired control can be selected.

Attributes of Toolbar Controls
After a control is inserted, it is possible to change the control attributes. Just double-click the control.

Push and Check Button Attributes
Double-click a Push button or a Check button calls the Button Attributes dialog.

Specifying properties of push buttons and check buttons

The following information must be specified:

Text Control Attributes
Double-clicking a Static Text or a Context Sensitive Text control calls the Text Attributes dialog:



The following information must be specified:

List Button Attributes
Double-clicking a List Button control calls the List Button Attributes dialog.

Specifying properties of list buttons in a toolbar

Only two parameters can be set for a list button in a toolbar: