Creating toolbars
To create a toolbar, use the following steps:
- In the Customize dialog box, click the Toolbars tab.
- Do one of the following:
- Select a menu group, then right-click and choose Append toolbar in the context menu.
The new toolbar will be added below the last existing toolbar.
- Select an existing toolbar in a menu group, then right-click and choose Insert toolbar in the context menu.
The new toolbar will be added above the selected toolbar.
The Add toolbar dialog box appears.
- Select a menu group, then right-click and choose Append toolbar in the context menu.
- Type a name in the Title field.
- Click the OK button.
The toolbar is created.
- Define the properties of the toolbar:
- Title: The toolbar name must include alphanumeric characters with no punctuation other than a dash (–) or an underscore (_). The Title along with the Alias enables the toolbar to be referenced programmatically.
- Position: Defines the display position of the toolbar when the CUI file is loaded.
The options are: Floating, Top, Left, Bottom or Right. The latter four refer to the window edge where the toolbar is docked.
- Display: Defines whether the toolbar appears or not when the CUI file is loaded.
- Rows: Specifies the number of rows when its position is floating. Toolbars with controls cannot have multiple rows.
- Xval: When the position is Floating, specifies the X coordinate in pixels, measured from the left edge of the screen to the left side of the toolbar.
- Yval: When the position is Floating, specifies the Y coordinate in pixels, measured from the top edge of the screen to the top of the toolbar.
- Add items to the toolbar.
Note: For complex toolbars or shared menu customizations between multiple users, see the Creating toolbars from a spreadsheet article. Using a spreadsheet can simplify the creation and maintenance of toolbar definitions.
To add a flyout to a toolbar
To add a flyout to a toolbar, use the following steps:
- In the Customize dialog box, click the Toolbars tab.
- Do one of the following:
- Select a toolbar and right-click and choose Append Flyout in the context menu to add the flyout at the end of the toolbar.
- Expand the toolbar and right-click a tool then choose Insert flyout in the context menu to add the flyout above the selected tool.
- The Add flyout dialog box appears.
- Type a name in the Title field of the Add flyout dialog.
- Click the OK button.
A new empty toolbar is created and inserted as a flyout in the selected toolbar.
- Define the flyout properties of the toolbar.
- Title: The toolbar name must include alphanumeric characters with no punctuation other than a dash (–) or an underscore (_). The Title along with the Alias enables the toolbar to be referenced programmatically.
- Target alias: Identifies the referenced toolbar.
- Own Icon:
- No: The icon of the first tool or the icon of the most recently used tool is displayed in the parent toolbar.
- Yes: The selected icon is displayed in the parent toolbar.
- Define the properties of the toolbar when the flyout is teared off and inserted as a floating toolbar.
- Add items to the toolbar.
Items added to the flyout are automatically added to the toolbar and vice versa.
