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

TCustomCheckListBox

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

TCustomCheckListBox - base class for TCheckListBox, the box found on CheckLists

Declaration

Source position: checklst.pas line 33

type TCustomCheckListBox = class(TCustomListBox) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure AssignItemDataToCache(); override;

  

  procedure AssignCacheToItemData(); override;

  

  procedure CreateParams(); override;

  procedure DrawItem(); override;

  function GetCachedDataSize; override;

  

  function GetCheckWidth;

  procedure DefineProperties(); override;

  procedure ReadData();

  

ReadData from a stream

  procedure WriteData();

  

WriteData to a stream

  procedure ClickCheck; virtual;

  

ClickCheck - software emulator of OnClickCheck event

  procedure ItemClick(); virtual;

  

ItemClick - software emulation of OnItemClick event

  procedure KeyDown(); override;

  procedure FontChanged(); override;

public

  constructor Create(); override;

  

Create - constructor for TCustomCheckListBox: calls inherited Create, finds the data size

  procedure MeasureItem(); override;

  

Request the Height of a list item, using the OnMeasureItem handler.

  procedure Toggle();

  

Toggle the checked/unchecked state of this box

  procedure CheckAll();

  property AllowGrayed: Boolean; [rw]

  

AllowGrayed - if True, the box is allowed to be greyed, and impossible to select

  property Checked []: Boolean; [rw]

  

Checked - True if the box with the specified Index has been checked

  property Header []: Boolean; [rw]

  property ItemEnabled []: Boolean; [rw]

  property State []: TCheckBoxState; [rw]

  

The State of the box with the specified index - checked, unchecked or greyed

  property OnClickCheck: TNotifyEvent; [rw]

  

OnClickCheck - event handler for a mouse click on the CheckBox

  property OnItemClick: TCheckListClicked; [rw]

  

OnItemClick - event handler for a mouse click on the data item associated with the checkbox

Inheritance

TCustomCheckListBox

  

TCustomCheckListBox - base class for TCheckListBox, the box found on CheckLists

|

TCustomListBox

  

The base class for TListBox.

|

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.