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

TCustomColorListBox.DefaultColorColor

TColor used for the clDefault color constant.

Declaration

Source position: colorbox.pas line 214

public property TCustomColorListBox.DefaultColorColor : TColor
  read FDefaultColorColor
  write SetDefaultColorColor
  default clBlack;

Description

DefaultColorColor is a TColor property with the value used for the clDefault color constant.

clDefault does not have any meaning without a context where it is applied. The default color is a different value for Forms, Buttons, Windows, etc. This property allows clDefault to be resolved to an actual TColor value when needed.

The default value for the property is clBlack.

Changing the value for the property causes the control to be redrawn.

DefaultColorColor is used in the DrawItem method to resolve the clDefault color constant when drawing items in the control.

Use NoneColorColor for the TColor value used for the clNone color constant.

Use Style to include or exclude the clDefault and clNone color constants in the Colors for the control.


Version 4.0 Generated 2025-05-03 Home