Sign in Join
FPDoc Onlineexperiment

TValueListEditor.OnGetPickList property

Member of TValueListEditorpublishedIn unit ValEdit

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

Declaration

pascal
property 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

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