Toolbar Controls

From RAD Studio
Jump to: navigation, search

Go Up to Buttons and Similar Controls


Toolbars provide an easy way to arrange and manage visual controls. You can create a toolbar out of a panel component and speed buttons, or you can use the TToolBar component, then right-click and choose New Button to add buttons to the toolbar.

The TToolBar component has several advantages: buttons on a toolbar automatically maintain uniform dimensions and spacing; other controls maintain their relative position and height; controls can automatically wrap around to start a new row when they do not fit horizontally; and TToolBar offers display options like transparency, pop-up borders, and spaces and dividers to group controls.

You can use a centralized set of actions on toolbars and menus. See VCL Actions.

Toolbars can also parent other controls such as edit boxes, combo boxes, and so on.

See Also