[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TListView.ParentColor

Uses the Color from the Parent control, when enabled.

Declaration

Source position: comctrls.pp line 1715

published property TListView.ParentColor : Boolean
  default False;

Description

ParentColor determines if the control should use the Color from the Parent control, when enabled. The default value for the property is False in TListView.

When this property is True, all changes to the Color of the parent will also be applied to the Color of the control, ensuring that they both contain same value. If the Color of the control is changed by the application, then ParentColor will be automatically set to False.

Using ParentColor when the Color value is clDefault can cause problems in resolving the actual color value. To obtain the Color property of a control while taking into account clDefault and ParentColor, use the GetColorResolvingParent method. This method might return a non-RGB color, but will never return clDefault. To obtain a purely RGB result use the GetRGBColorResolvingParent method.

See also

TControl.ParentColor

  

Use the Color from the Parent control, when enabled.

TControl.Color

  

The background color for the control.

TControl.GetColorResolvingParent

  

Returns the color of the control while resolving clDefault and ParentColor.

TControl.GetRGBColorResolvingParent

  

Returns a RGB value for the color used on the control.


Version 3.2 Generated 2024-02-25 Home