[Overview][Constants][Types][Classes][Procedures and functions][Variables][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 999

type TButtonControl = class(TWinControl)

protected

  fLastCheckedOnChange: Boolean;

  

  function GetChecked; virtual;

  

  procedure SetChecked(); virtual;

  

  procedure DoOnChange; virtual;

  

  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

  function ColorIsStored; override;

  

Colour is stored

  procedure Loaded; override;

  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 UseOnChange: Boolean; [rws]

  

UseOnChange - if true, this control is to be used if any change occurs

  property OnChange: TNotifyEvent; [rw]

  

OnChange - event handler for any change in properties of the control

public

  constructor Create(); override;

end;

Inheritance

TButtonControl

  

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

|

TWinControl

  

The base class for all windowed controls

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject

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