Sign in Join
FPDoc Onlineexperiment

TCustomColorListBox.Selected property

Member of TCustomColorListBoxpublicIn unit ColorBox

The TColor value for the selected item in the list box control.

Declaration

pascal
property Selected: TColor read GetSelected write SetSelected default clBlack;

Description

Selected is a TColor property with the color for the selected item in list box control. The default value for the property is clBlack.

Selected contains the value in Colors found at the position in ItemIndex. If ItemIndex is -1 (for no selection) or the handle for the control has not been assigned, the existing TColor value in the member is returned as the property value.

Setting a new value for the property causes the values in Colors to be searched, and the ItemIndex is set to the location for the color value. If the new value is not in Colors, ItemIndex is set to -1.

See also

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