RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar Class

TToolBar manages tool buttons and other controls, arranging them in rows and automatically adjusting their sizes and positions.

Pascal
TToolBar = class(TToolWindow);
C++
class TToolBar : public TToolWindow;

ComCtrls

TToolBar is a container for tool buttons (TToolButton). It provides an easy way to arrange and manage visual controls. 

All tool buttons on a toolbar maintain a uniform width and height. 

Other controls can sit on a toolbar. These controls (which are held in place by invisible tool buttons) maintain a uniform height. 

Controls can automatically wrap around and start a new row when they do not fit horizontally on the toolbar. 

The Flat property allows the background to show through the toolbar and gives pop-up borders to the tool buttons. 

Spaces and dividers (which are in fact specially configured tool buttons) can group controls on the toolbar both visually and functionally. 

Typically, the tool buttons correspond to items in an application's menu and give the user more direct access to the application's commands. 

 

TToolButton 

TCoolBar 

TToolDockObject 

Buttons and Similar Controls 

Toolbars 

Adding a Cool Bar Component 

Adding a Speed Button to a Panel 

Adding a Toolbar Using a Panel Component 

Adding a Toolbar Using the Toolbar Component 

Adding a Tool Button 

Adding Hidden Toolbars 

Allowing Toggle Buttons 

Allowing Toggled Tool Buttons 

Assigning a Menu to a Tool Button 

Assigning a Speed Button's Glyph 

Assigning Images to Tool Buttons 

Creating a Group of Speed Buttons 

Creating Groups of Tool Buttons 

Designing Toolbars and Cool Bars 

Hiding and Showing Toolbars 

Responding to Clicks 

Setting the Initial Condition of a Speed Button 

Setting Tool Button Appearance and Initial Conditions

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!