[Overview][Types][Classes][Index] | Reference for unit 'GroupedEdit' (#lcl)

# TCustomAbstractGroupedEdit.CreateBuddy

Creates the TControl instance assigned to the Buddy property.

## Declaration

Source position: groupededit.pp line 182

`protected function TCustomAbstractGroupedEdit.CreateBuddy: TControl; virtual;`

## Function result

TControl instance created in the method.

## Description

CreateBuddy is a TControl function used to create the TControl instance assigned to the Buddy property. CreateBuddy calls GetBuddyClassType to get the class reference used to create new instances of the control, and calls its Create method using the current class instance as the owner for the TControl instance.

CreateBuddy is used the Create constructor.

## See also

TCustomAbstractGroupedEdit.Buddy |  | Represents the associated TControl instance in the grouped edit control.
TCustomAbstractGroupedEdit.GetBuddyClassType |  | Gets the class reference used to create the Buddy for the control.
TCustomAbstractGroupedEdit.Create |  | Constructor for the class instance.
TCustomAbstractGroupedEdit.CreateEditor |  | Creates the TGEEdit instance used in the BaseEditor property.