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

# TCustomFrame

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

TCustomFrame - the base type for TFrame

## Declaration

Source position: forms.pp line 263

`type TCustomFrame = class(TScrollingWinControl)`
``
`class procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`protected`
`procedure GetChildren(); override;` |  | GetChildren - calls inherited GetChildren then accepts ownership of all owned components that have no parent
`procedure Notification(); override;` |  | Notification calls inherited Notification then add or removes the component's action list (depending on what Operation specifies)
`procedure SetParent(); override;` |  | SetParent - calls inherited Setparent after validity checks, then updates the action lists
`procedure DefineProperties(); override;` |  | DefineProperties- calculates low and high values for frame design from ancestor class
`procedure CalculatePreferredSize(); override;`
`public`
`constructor Create(); override;` |  | Create - constructor for TCustomFrame: performs inherited Create then initialises styles, bounds etc
`public`
`class function GetControlClassDefaultSize; override;` |  | GetControlClassDefaultSize - returns its own defaults for frame design, overriding the inherited values
`end;`

## Inheritance

`TCustomFrame` |  | TCustomFrame - the base type for TFrame
`TScrollingWinControl` |  | TScrollingWinControl - a class of Window Control that has one or more scroll bars
`TCustomControl` |  | TCustomControl - a base class for many window controls
`TWinControl`
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

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