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

TScrollBox.ParentBackground

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

Declaration

Source position: forms.pp line 245

published property TScrollBox.ParentBackground : Boolean
  default True;

Description

ParentBackground is a Boolean property which indicates if the background for the Parent control is drawn as the background for the current control instance. The default value in TScrollBox is True.

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. csOpaque is added to or removed from ControlStyle by calling the UpdateParentColorChange method. The style flags are included in ControlStyle when ParentBackground is set to True, and excluded when set to False.

See also

TScrollBox.UpdateParentColorChange

  

Updates ControlStyle flags to set the opacity for the control.

TControl.ParentBackground

  

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

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.

TControlStyle

  

Set type used to store values from the TControlStyleType enumeration.

TControlStyleType

  

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


Version 4.0 Generated 2025-05-03 Home