Sign in Join
FPDoc Onlineexperiment

TCustomGroupBox.SetParentBackground procedure

Member of TCustomGroupBoxprotectedIn unit StdCtrls

Sets the value for the ParentBackground property.

Declaration

pascal
procedure SetParentBackground(const AParentBackground: Boolean)
 ; override

Arguments

AParentBackground

New value for the ParentBackground property.

Description

SetParentBackground is an overridden method in TCustomGroupBox used to set the value for the ParentBackground property. It calls the inherited method on entry.

When the property value is set to True and ParentColor is enabled, the Color property in the Parent control is assigned to the Color property for the group box. Otherwise, clDefault is assigned to the Color property.

SetParentBackground calls the UpdateOpaque method to ensure that the ControlStyle flags for the control reflect the transparency needed to draw the parent background.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.