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

TCustomCheckBox

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

The base class for checkbox components.

Declaration

Source position: stdctrls.pp line 1262

type TCustomCheckBox = class(TButtonControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure Click; override;

  

Invokes the OnClick and ActionLink.Execute handlers.

  procedure DoClickOnChange; virtual;

  

Invokes either the OnClick or OnChange handler.

  function RetrieveState;

  

Retrieves the checkbox state from the widget.

  procedure InitializeWnd; override;

  procedure Toggle; virtual;

  

Alternate between checked and unchecked state.

  function DialogChar(); override;

  

Do something useful with accelerators etc.

  function GetChecked; override;

  

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

  procedure SetChecked(); override;

  

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

  procedure RealSetText(); override;

  

Sets the Caption property.

  procedure ApplyChanges; virtual;

  

Asks the widget to update the visual appearance of the object.

  class function GetControlClassDefaultSize; override;

  procedure Loaded; override;

  procedure WSSetText(); override;

  

Sends text to the widget (from WM_SETTEXT?).

  procedure TextChanged; override;

  

Handles changes of the Text property.

  procedure CreateParams(); override;

public

  constructor Create(); override;

  property Alignment: TLeftRight; [rw]

  property AllowGrayed: Boolean; [rw]

  

Allows the check box to be in a "grayed" state.

  property State: TCheckBoxState; [rw]

  

Indicates whether the check box is checked (selected), unchecked (deselected) or grayed (disabled).

  property ShortCut: TShortcut; [r]

  

  property ShortCutKey2: TShortcut; [r]

  

  property OnChange: TNotifyEvent;

  

Handler for any change in properties of the control.

Inheritance

TCustomCheckBox

  

The base class for checkbox components.

|

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

Description

Check boxes present the user with options that can be selected (checked) or deselected (unchecked).

See also

TCheckBox

  

A label with a box which can contain a check mark.

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