Show: Delphi C++
Display Preferences

Vcl.StdCtrls.TButton

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.StdCtrls.TCustomButtonVcl.StdCtrls.TButtonControlVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTButton

Delphi

TButton = class(TCustomButton)

C++

class PASCALIMPLEMENTATION TButton : public TCustomButton

Properties

Type Visibility Source Unit Parent
class public
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls Vcl.StdCtrls

Description

TButton is a push button control.

Use TButton to put a standard push button on a form. TButton introduces several properties to control its behavior in a dialog box setting. Users choose button controls to initiate actions.

To use a button that displays a bitmap instead of a label, use TBitBtn. To use a button that can remain in a pressed position, use TSpeedButton.

The Caption property can be used to define an accelerator key to a control.

Note: Because the TButton caption is always centered, changing the BiDiMode alignment has no effect.
Note: Changing the color of the Caption is not supported for TButton. Instead, use a button type whose Caption color can be changed using the Font property, such as TSpeedButton or TBitBtn.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance