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

TControl.ParentBackground

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

Declaration

Source position: controls.pp line 1582

protected property TControl.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

TControl.ParentColor

  

Use the Color from the Parent control, when enabled.

TControl.Color

  

The background color for the control.

TControl.ControlStyle

  

Contains style flags which control the features or behaviors enabled for the control.

TControl.Parent

  

The control within which the control is shown.

TControlStyleType

  

Enumerated type with values for features or behaviors for a control.

TControlStyle

  

Set type used to store values from the TControlStyleType enumeration.


Version 3.2 Generated 2024-02-25 Home