TItemProp.PickList property
Values that can be selected for the item in TValueListEditor.
Declaration
property 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
