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

# TCustomGroupBox

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

The base class for TGroupBox, TRadioGroup and TCheckGroup.

## Declaration

Source position: stdctrls.pp line 165

`type TCustomGroupBox = class(TWinControl)`
`protected`
`class procedure WSRegisterClass; override;` |  | Registers this component class with the current WidgetSet.
`class function GetControlClassDefaultSize; override;` |  | Returns the default dimensions for new instances of the class.
`procedure UpdateOpaque;` |  | Updates the control style when the parent background is used.
`procedure CreateParams(); override;` |  | Ensures that creation parameters are updated for the control.
`procedure SetColor(); override;` |  | Sets the value for the Color property.
`procedure SetParentBackground(); override;` |  | Sets the value for the ParentBackground property.
`procedure CMParentColorChanged(); message;` |  | Handles the CM_PARENTCOLORCHANGED message for the control.
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`property ParentBackground: Boolean;` |  | Indicates if the control uses the background from the parent.
`end;`

## Inheritance

`TCustomGroupBox` |  | The base class for TGroupBox, TRadioGroup and TCheckGroup.
`TWinControl` |  | Implements a windowed control which can contain other child controls.
`TControl` |  | The base class for visible controls.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TCustomGroupBox is a visual component used to organize related controls into a group. It acts a container. TCustomGroupBox is the base class for TGroupBox, TRadioGroup and TCheckGroup. Do not create instances of TCustomGroupBox; use one of the descendent classes.

## See also

TGroupBox |  | A container that allows a number of objects to be grouped physically and conceptually on a form.
TRadioGroup |  | TRadioGroup is a group of related but mutually exclusive radio buttons, requiring the user to select one of a set of alternatives.
TCheckGroup |  | TCheckGroup is a group of Check Boxes physically and logically grouped together on a form.