Vcl.Touch.GestureCtrls.TGesturePreview.ParentColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ParentColor: Boolean read FParentColor write SetParentColor default 1;

C++

__property ParentColor = {default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Touch.GestureCtrls.pas
Vcl.Touch.GestureCtrls.hpp
Vcl.Touch.GestureCtrls TGesturePreview

Description

Specifies where a control looks for its color information.

Vcl.Touch.GestureCtrls.TGesturePreview.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