Previous Topic

Next Topic

Inhoudsopgave

Book Index

ParentColor Property

Property Property ParentColor: Boolean (R/W)

Description

Determines where a control looks for its color information.

Remarks

This property is common to all TForm controls.

Details

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.