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

# TCustomCheckGroup

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

TCustomCheckGroup: The base type for TCheckGroup

## Declaration

Source position: extctrls.pp line 978

`type TCustomCheckGroup = class(TCustomGroupBox)`
``
`class procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`protected`
`procedure SetItems();` |  | SetItems - specify the strings that form the Items of the group
`procedure SetColumns();` |  | SetColumns - specifies the nuber of coulmns in which the Items are arranged
`procedure DefineProperties(); override;` |  | DefineProperties - overrides the method inherited from TComponent, defines the top, left properties
`procedure ReadData();` |  | Reads data from a stream
`procedure WriteData();` |  | Writes Data to a stream
`procedure Loaded; override;` |  |
`procedure DoOnResize; override;` |  | Calls OnResize
`public`
`constructor Create(); override;` |  | Create - constructor for TCustomCheckGroup: calls inherited Create, then sets styles, creates lists, initialises sizing and layout properties
`destructor Destroy; override;` |  | Destroy - destructor for TCustomCheckGroup: frees items and buttons, then calls inherited Destroy
`function Rows;` |  | Rows - the number of rows in which the Items (check boxes) are arranged
`property AutoFill: Boolean; [rw]` |  | AutoFill - whether Check Boxes should be automatically filled in (checked)
`property Items: TStrings; [rw]` |  | Items - a string list for the captions of the check boxes
`property Checked: Boolean; [rw]` |  | Whether an individual entry in the list is Checked
`property CheckEnabled: Boolean; [rw]` |  | CheckEnabled - whether a given (indexed) entry in the list is allowed to be checked
`property Columns: Integer; [rw]` |  | Columns - the number of columns in which the Items (check boxes) are to be arranges
`property ColumnLayout: TColumnLayout; [rw]` |  | ColumnLayout - HorizontalThenVertical or vice versa
`property OnItemClick: TCheckGroupClicked; [rw]` |  | OnItemClick - event handler for mouse click on one of the Items in the Check Group
`end;`

## Inheritance

`TCustomCheckGroup` |  | TCustomCheckGroup: The base type for TCheckGroup
`TCustomGroupBox` |  | TCustomGroupBox - the base class for TGroupBox, TRadioGroup and TCheckGroup
`TWinControl`
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TCustomCheckGroup: The base type for TCheckGroup

This class defines Items, where the captions for individual check boxes are stored, Rows and Columns for arranging the check boxes, and ColumnLayout to determine whether the data are arranged down the columns first, or across the rows first.

## See also

TCustomGroupBox |  | TCustomGroupBox - the base class for TGroupBox, TRadioGroup and TCheckGroup

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