Sign in Join
FPDoc Onlineexperiment

TCustomColorListBox.Colors property

Member of TCustomColorListBoxpublicIn unit ColorBox

Provides indexed access to the TColor value for items in the control.

Declaration

pascal
property Colors[Index: Integer]: TColor read GetColors write SetColors;

Description

Colors is an indexed TColor property which provides access to the colors in the control by their ordinal position in the list of Items. Setting a new TColor value in the indexed property causes the control to be redrawn.

Values in Colors and ColorNames are used in the DrawItem method when the color sample and the color name for an item is drawn on the control Canvas.

Use ColorNames to access the name for the color at a specific position in the Items for the control.

Use Style to determine the colors and names available in the list box control.

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