RAD Studio VCL Reference
TPanel.ParentBackground Property

Determines whether control uses parent's theme background.

property ParentBackground: Boolean;
__property Boolean ParentBackground;

If ParentBackground is true, the control uses the parent's theme background to draw its own background. ParentBackground has no effect unless XP themes are enabled. 

When XP themes are enabled ParentBackground defaults to true. To use the Color property to determine the background color of a control, set ParentBackground to false. This is done automatically if the Color property is changed at designtime. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!