[Overview][Types][Classes][Index] |
Indicates if the color in the Parent control is used.
Source position: groupededit.pp line 292
public property TCustomAbstractGroupedEdit.ParentColor : Boolean |
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.
Version 4.0 | Generated 2025-05-03 | Home |