RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton Class

TToolButton is a button control in a TToolBar object.

Pascal
TToolButton = class(TGraphicControl);
C++
class TToolButton : public TGraphicControl;

ComCtrls

Use TToolButton to implement buttons on a toolbar. While other controls (including TButton and TSpeedButton) can be placed on toolbars, TToolButton utilizes special toolbar features to simplify the configuration of buttons and offers added display options such as pop-up borders and transparency. 

To place tool buttons on a toolbar at design time, select the toolbar, right-click, and choose New Button. 

 

TButton 

TSpeedButton 

TToolBar 

TToolBar 

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!