Vcl.StdCtrls.TButton
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
- Vcl.Buttons.TBitBtn
- Vcl.StdCtrls.TCustomButton
- Vcl.Buttons.TSpeedButton
- Button Controls
- Buttons and Similar Controls
- Standard Controls
- Using Accelerator Keys