Sign in Join
FPDoc Onlineexperiment

TCustomAbstractGroupedEdit.ParentColor property

Member of TCustomAbstractGroupedEditpublicIn unit GroupedEdit

Indicates if the color in the Parent control is used.

Declaration

pascal
property ParentColor: Boolean read GetParentColor write SetParentColor default False;

Description

ParentColor is a Boolean property which indicates if the Color from the Parent control is used instead the value assigned to the control. When this property is True, all changes to Color in the parent will also be applied to the Color in the control, ensuring that they both contain the same value. If the Color of the control is changed by the application, then ParentColor will be automatically set to False.

Read and write access to the property value are redirected to the BaseEditor control. The default value for the property is 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.