Sign in Join
FPDoc Onlineexperiment

TControl.ParentBackground property

Member of TControlprotectedIn unit Controls

Indicates if the control uses the background color from its Parent control.

Declaration

pascal
property ParentBackground: Boolean read GetParentBackground write SetParentBackground;

Description

ParentBackground is a Boolean property which indicates if the background color from the Parent control is used as the background color for the current control instance.

ParentBackground is True when csParentBackground is included in the ControlStyle property. Setting the value in ParentBackground causes ControlStyle to be updated to include or exclude the csParentBackground enumeration value; it is included when the property is set to True.

ParentBackground and ParentColor are updated when a new value is assigned to the Color property. The properties are set to False when an explicit color is assigned to the Color property.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.