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

# TPickListCellEditor

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a cell editor control which displays a pick list.

## Declaration

Source position: grids.pas line 277

`type TPickListCellEditor = class(TCustomComboBox)`
`protected`
`procedure WndProc(); override;` |  | Implements the message processing loop for the cell editor.
`procedure KeyDown(); override;` |  | Handles a key down message for the cell editor.
`procedure DropDown; override;` |  | Signals the OnDropDown event handler.
`procedure CloseUp; override;` |  | Called when the drop-down list is closed.
`procedure Select; override;` |  | Applies a value selected from the pick list to the grid and signals its OnPickListSelect event handler.
`procedure Change; override;` |  | Notifies the Grid control when the value for the cell editor has been changed.
`procedure msg_GetValue(); message;` |  | Handles the message used to store the coordinates and text for the cell to the specified grid message.
`procedure msg_SetGrid(); message;` |  | Handles the message used to store the associated grid and options for the cell editor.
`procedure msg_SetValue(); message;` |  | Handles the message used to set the Text and caret position in the cell editor.
`procedure msg_SetPos(); message;` |  | Stores the column and row numbers from the specified message to the cell editor.
`procedure msg_GetGrid(); message;` |  | Stores the associated grid control and its options to the specified message.
`public`
`procedure EditingDone; override;` |  | Performs actions needed to synchronize the grid and the editor when editing has been completed in the cell editor.
`property BorderStyle: TBorderStyle;` |  | Indicates the border style displayed around the control.
`property OnEditingDone: TNotifyEvent;` |  | Event handler signalled when editing is completed for the control.
`end;`

## Inheritance

`TPickListCellEditor` |  | Implements a cell editor control which displays a pick list.
`TCustomComboBox` |  | The base class for combo-box components.
`TWinControl` |  | Implements a windowed control which can contain other child controls.
`TControl` |  | The base class for visible controls.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TPickListCellEditor is a TCustomComboBox descendant which implements a cell editor control that displays a pick list. TPickListCellEditor provides overridden methods to alter the behavior of the TCustomComboBox ancestor.

TPickListCellEditor has an internal member used to store the TCustomGrid for the cell editor. In addition, the Row and Column numbers for the underlying cell are stored in internal members. TPickListCellEditor provides methods needed to implement LCL message passing using the TGridMessage message type.

## See also

TGridMessage |  | Contains a LCL message and its auxiliary values.