RAD Studio VCL Reference
TPanel.Color Property

Specifies the background color of the control.

property Color: TColor;
__property TColor Color;

Use Color to read or change the background color of the control.  

If a control's ParentColor property is true, then changing the Color property of the control's parent automatically changes the Color property of the control. When the value of the Color property is changed, the control's ParentColor property is automatically set to false.  

When XP themes are enabled the ParentBackground defaults to true, overriding the Color property. Set ParentBackground to false to use the Color property to determine the background color for the control. 


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