Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.ParentColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ParentColor: Boolean read FParentColor write SetParentColor default True;

C++

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

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance