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

TItemProp.PickList

Values that can be selected for the item in TValueListEditor.

Declaration

Source position: valedit.pas line 49

published property TItemProp.PickList : TStrings
  read GetPickList
  write SetPickList;

Description

PickList is a TStrings property which contains values that can be selected for the item in TValueListEditor. Values in PickList are displayed using a combo-box-style drop down when editing the item.

Reading the value in PickList ensures that a TStringList class instance is assigned for the property. Its OnChange event handler is set to the private PickListChange method which adjusts the EditStyle to match the intended usage for the item. In other words, an EditStyle of esSimple is changed to esPickList when it contains values.

Assigning a new TStringList to PickList causes existing values to be overwritten. The TValueListEditor (which owns the item) is redrawn when its EditorMode property is True.

See also

TValueListEditor.ItemProps

  

Provides indexed access to item definitions in the control.

TValueListEditor.Values

  

Provides indexed access to Values stored in the control.

TItemProp.EditStyle

  

Identifies the type of editor used for the item value.

TCustomStringGrid.EditorMode

  

True when the Editor is ready to modify the value for the current cell.


Version 4.0 Generated 2025-05-03 Home