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

`type TCustomCheckListBox = class(TCustomListBox)`
`protected`
`procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`procedure AssignItemDataToCache(); override;` |  |
`procedure AssignCacheToItemData(); override;` |  |
`function GetCachedDataSize; override;` |  |
`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;`
`procedure ParentFontChanged; override;`
`public`
`constructor Create(); override;` |  | Create - constructor for TCustomCheckListBox: calls inherited Create, finds the data size
`procedure MeasureItem(); override;` |  | Measure the height of the item in the list with the specified index
`procedure Toggle();` |  | Toggle the checked/unchecked state of this box
`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 ItemEnabled: Boolean; [rw]`
`property State: TCheckBoxState; [rw]` |  | The State of the box with the specified index - checked, unchecked or greyed
`property Count: Integer; [r]` |  | Count - the number of entries in the list of Items
`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
`end;`

## Inheritance

`TCustomCheckListBox` |  | TCustomCheckListBox - base class for TCheckListBox, the box found on CheckLists
`TCustomListBox` |  | TCustomList Box : the base class for TListBox
`TWinControl` |  | TWinControl - the base class for all windowed controls
`TControl` |  | TControl - the main ancestor class for visual controls.
`TLCLComponent`
?
`TObject`

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