From RAD Studio API Documentation
Jump to: navigation, search


property ParentColor: Boolean read FParentColor write SetParentColor default True;


__property bool ParentColor = {read=FParentColor, write=SetParentColor, default=1};


Type Visibility Source Unit Parent
property protected
Vcl.Controls TControl


Specifies where a control looks for its color information.

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 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.

See Also