Sign in Join
FPDoc Onlineexperiment

TPanel.Color property

Member of TPanelpublishedIn unit ExtCtrls

Contains the background color for the panel.

Declaration

pascal
property Color:;

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.

This description is the one of ExtCtrls.TCustomPanel.Color.

See also

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