Contents Up Previous Next

Creating a tool bar

To create a tool bar for a frame displayed in the object editor, select the Edit tool bar option on the Edit menu.

The tool bar properties editor will appear with the following controls.

Name
The name of this tool bar instance.
Description
A textual description of the tool bar.
Class name
The name of the C++ class that will be created for this tool barl.
Rows/cols
The maximum number of columns for this toolbar (set to a high number since only one row is allowed).
Tools
A list of the current tools in the tool bar.
Id
Contains the name of the identifier for a new or currently selected tool. wxBuilder allocates actual integer identifiers for these names automatically.
Help string
Allows the user to specify a help string which will appear on the status line when the mouse cursor is over that menu item (Motif and Windows only).
Bitmap
The name of the bitmap file for the tool. A full path or extension should not be given; the project path will be prepended, and a .BMP or .XBM extension added as appropriate.
Toggle
If checked on, this tool will be a toggle tool.
Add
Press to add a tool to the tool bar. Note that you must fill in the fields before you press the button.
Save
Saves the displayed values in the currently selected toggle.
Delete
Deletes the currently selected tool.
Demote
Moves the selected tool to the end of the tool bar.

Deleting a tool bar


Deleting a tool bar

To remove the entire tool bar, delete the object in the usual way from the object editor (select the tool bar object and choose the Delete object option from the Edit menu).