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

type TButtonControl = class(TWinControl)

protected

  FLastCheckedOnChange: Boolean;

  

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

  procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

  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 Loaded; override;

  

Loaded makes a number of checks, using client size if specified, and copying appropriate flags, fonts, text etc, makes list of child controls to notify them of any changes, then calls inherited Loaded

  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

  

TWinControl - the base class for all windowed controls

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject