Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomPanel.SetParentBackground

Sets the background used for the parent control.

Declaration

Source position: extctrls.pp line 1089

protected procedure TCustomPanel.SetParentBackground(

  const AParentBackground: Boolean

); override;

Arguments

AParentBackground

  

When True, the panel is drawn with transparency.

Description

SetParentBackground is an overridden procedure used to the set the background used for the parent control. SetParentBackground ensures that the ControlStyle property is updated to include or omit the value csOpaque. When AParentBackground contains True, the value is excluded from ControlStyle. When AParentBackground contains False, the value is included in ControlStyle.

SetParentBackground calls the inherited method prior to exit.

See also

TWinControl.SetParentBackground

  

Sets the value for the ParentBackground property.