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

TButtonControl

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

The base class for various button controls.

Declaration

Source position: stdctrls.pp line 1115

type TButtonControl = class(TWinControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  function GetActionLinkClass; override;

  function GetChecked; virtual;

  procedure SetChecked(); virtual;

  procedure DoOnChange; virtual;

  

Invokes the OnChange handler.

  procedure Click; override;

  

Invokes the OnClick and ActionLink.Execute handlers.

  property Checked: Boolean; [rws]

  

The state of the check mark. Here always False, can be implemented in derived classes.

  property ClicksDisabled: Boolean; [rw]

  

Allows to disable clicks, without showing the button as disabled.

  property OnChange: TNotifyEvent; [rw]

  

Handler for any change in properties of the control.

public

  constructor Create(); override;

Inheritance

TButtonControl

  

The base class for various button controls.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

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