[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TButtonControl

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TButtonControl : ancestor class for several Button (including Radio Button) and Check Box classes

## Declaration

Source position: stdctrls.pp line 1047

`type TButtonControl = class(TWinControl)`
``
`class procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`protected`
`function GetChecked; virtual;` |  | GetChecked - returns True if the button is checked
`procedure SetChecked(); virtual;` |  | SetChecked - specifies whether or not the button is checked
`procedure DoOnChange; virtual;` |  | DoOnChange - perform the code of the OnChange event
`procedure Click; override;` |  | Click - a procedure that allows the programmer to simulate a mouse click over the control, and initiates the same Action as that associated with the OnClick event
`procedure CMWantSpecialKey(); message;` |  | Control Message when a special key is needed
`property Checked: Boolean; [rws]` |  | Checked - whether this button has been checked, which signifies selection
`property ClicksDisabled: Boolean; [rw]` |  | ClicksDisabled - if True, clicks are disabled for this button control
`property OnChange: TNotifyEvent; [rw]` |  | OnChange - event handler for any change in properties of the control
`public`
`constructor Create(); override;` |  | Create - constructor for TButtonControl: calls inherited Create then initialises style
`end;`

## Inheritance

`TButtonControl` |  | TButtonControl : ancestor class for several Button (including Radio Button) and Check Box classes
`TWinControl`
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net.