TCustomPanel.ParentBackground property
Indicates if the background from the parent control is used to draw the background for the control.
Declaration
property ParentBackground: default True;Description
When ParentBackground is True, the control uses the
background from the parent color (including any theme drawing features from
ThemeServices).
ParentBackground is used in conjunction with the ControlStyle
property. Changing the value in ParentBackground causes the ControlStyle
property to be updated to reflect the property setting. When the property is
set to True, the value csOpaque is excluded from
ControlStyle to allow the default background to be drawn. When the property
is set to False, the value csOpaque is included in the
ControlStyle property.
The default value for the property is True.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
