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

# TCustomFrame.ParentBackground

Indicates if the control uses the background from the parent.

## Declaration

Source position: forms.pp line 340

`public property TCustomFrame.ParentBackground : Boolean default True;`

## Description

The write access specifier is overridden in TCustomFrame. It calls the inherited method on entry.

If the new property value is True and ParentColor is True, the color assigned to the Parent control is stored in the Color property. Otherwise, Color is set to the value clDefault. The UpdateOpaque method is called to adjust the control style flags for the control.

The default value for the property is True.

## See also

TCustomFrame.UpdateOpaque |  | Updates control style flags to reflect the transparency for the frame.
TControl.ParentBackground |  | Indicates if the control uses the background color from its Parent control.
TControl.Color |  | The background color for the control.
TControl.Parent |  | The control within which the control is shown.