[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 1006

type TButtonControl = class(TWinControl)

protected

  fLastCheckedOnChange: Boolean;

  

fLastCheckedOnChange - local boolean variable to show whether the button was checked at the last OnChange event

  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

  function ColorIsStored; override;

  

Returns True if 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 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

  

TWinControl - the base class for all windowed controls

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject