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

# TValueListEditor.OnGetPickList

Event handler signalled to load values for the PickList in an item.

## Declaration

Source position: valedit.pas line 317

`published property TValueListEditor.OnGetPickList : TGetPickListEvent read FOnGetPickList write FOnGetPickList;`

## Description

OnGetPickList is a TGetPickListEvent property with the event handler signalled to load the PickList for the item with a specific key name. OnGetPickList allows the application to provide custom selectable values for an item which uses the esPickList editor style.

OnGetPickList is signalled from the GetDefaultEditor method when an item definition in ItemProps uses esPickList in its EditStyle property.

An application must implement and assign a routine to the event handler to respond to the notification. The arguments for the event handler include the control instance, the key name for the item, and a TStrings instance where the values for the pick list can be stored. Existing values in the pick list can be modified or replaced entirely.

## See also

TValueListEditor.GetDefaultEditor |  | Gets the editor control for the specified column number.
TValueListEditor.ItemProps |  | Provides indexed access to item definitions in the control.
TGetPickListEvent |  | Specifies an event handler signalled when loading the PickList for an item in TValueListEditor.
TItemProp.EditStyle |  | Identifies the type of editor used for the item value.
TItemProp.PickList |  | Values that can be selected for the item in TValueListEditor.
TEditStyle |  | Indicates the editor style for items in TValueListEditor.