ParentColor Property

Applies to TestComplete 14.70, last modified on April 22, 2021

Specifies whether the component uses the same color as its parent.

Declaration

componentObj.ParentColor
Read-Write Property Boolean
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxButton, TcxButtonEdit, TcxCalcEdit, TcxCheckBox, TcxComboBox, TcxCurrencyEdit, TcxDateEdit, TcxGroupBox, TcxLabel, TcxListBox, TcxMemo, TcxMRUEdit, TcxProgressBar, TcxRadioGroup, TcxSpinEdit, TcxTextEdit, TcxTimeEdit, TPanel

Description

The ParentColor property specifies whether the component uses the same background color as its parent. If ParentColor is False, the component uses the background color specified by its Color property, or, if the component does not have a Color property, the default background color.

To ensure that all component on the form have the uniform appearance, set ParentColor to True for all components.

Property Value

True, if the component uses the same background color as its parent; False otherwise.

See Also

Color Property
ParentBackground Property
ParentFont Property
ParentShowHint Property

Highlight search results