TCustomPanel.Color property
Contains the background color for the panel.
Declaration
property Color: default clDefault;Description
Color is a
TColor property with the background color
for the panel.
The default value for Color is determined by the UseCLDefault compiler define.
When UseCLDefault is defined, the default value is clDefault, and the color
will need to be resolved using the GetDefaultColor method.
Convenience routines which obtain the color by resolving clDefault and
ParentColor are also provided in TControl.GetColorResolvingParent
and TControl.GetRGBColorResolvingParent. If UseCLDefault is not
defined, the default value is clWindow.
Setting an explicit value in Color causes both ParentColor and ParentBackground to be set to False, and the control is redrawn.
Set ParentBackground or ParentColor to True to use the background color from the Parent control, making the panel transparent when drawn.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
