[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#lcl)

TCustomPanel.Color

Contains the background color for the panel.

Declaration

Source position: extctrls.pp line 1103

public property TCustomPanel.Color : TColor
  default clDefault;

Description

Color is a TColor property with the background color for the panel. It sets the default value for the property.

The default value in Color is the same as the value in the parent window Color property. If the color is clDefault , the result 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.

See also

TControl.Color

  

The background color of the control.