TCustomControlFilterEdit.EditKeyDown procedure
Handles a KeyDown event for the Edit control.
Declaration
procedure EditKeyDown(var Key: Word; Shift: TShiftState); overrideArguments
Key | Virtual key code for the key down event. |
Shift | Shift, Alt, or Ctrl modifier for the key down event. |
Description
EditKeyDown is an overridden method in
TCustomControlFilterEdit. It implements the OnKeyDown event handler
for the Edit in the grouped edit control. It calls the inherited EditKeyDown
method on entry to signal an assigned OnEditKeyDown handler using the values in
Key and Shift. No additional actions are performed if Key is set to 0 in the
inherited method.
EditKeyDown extends the inherited method to handle additional key down events, including:
- Return
- Up, Shift+Up
- Down, Shift+Down
- PageUp, Shift+PageUp
- PageDn, Shift+PageDn
- Home, Shift+Home, Ctrl+Home
- End, Shift+End, Ctrl+End
The methods called to respond to the key down event are declared as abstract virtual methods in TCustomControlFilterEdit; they are implemented in descendent classes to call methods in the associated control for the filter edit control.
If the value in Key is handled in the method, Key is set to VK_UNKNOWN (0).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
