RAD Studio VCL Reference
TCheckBox.ParentColor Property

Determines where a control looks for its color information.

property ParentColor: Boolean;
__property Boolean ParentColor;

To have a control use the same color as its parent control, set ParentColor to true. If ParentColor is false, the control uses its own Color property. 

Set ParentColor to true for all controls in order to ensure that all the controls on a form have a uniform appearance. For example, if ParentColor is true for all controls in a form, changing the background color of the form to gray causes all the controls on the form to also have a gray background. 

When the value of a control's Color property changes, ParentColor becomes false automatically. 


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