TScrollBox.ParentColor property
Declaration
property ParentColor: ;Description
Not described here; this is what TControl.ParentColor says of it:
Use the Color from the Parent control, when enabled.
ParentColor determines if the control should use the
Color from the Parent control, when enabled. The default value is
True.
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.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
