Vcl.Outline.TOutline.ParentColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ParentColor: Boolean read FParentColor write SetParentColor default 0;

C++

__property ParentColor = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Outline.pas
Vcl.Outline.hpp
Vcl.Outline TOutline

Description


Specifies where a control looks for its color information.

Vcl.Outline.TOutline.ParentColor inherits from Vcl.Controls.TControl.ParentColor. All content below this line refers to Vcl.Controls.TControl.ParentColor.

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