From RAD Studio API Documentation
Jump to: navigation, search



TButton = class(TCustomButton)


class PASCALIMPLEMENTATION TButton : public TCustomButton


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


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