Sign in Join
FPDoc Onlineexperiment

TDBLookupComboBox.KeyDown procedure

Member of TDBLookupComboBoxprotectedIn unit DBCtrls

Handles the Null key shortcut in key down events.

Declaration

pascal
procedure KeyDown(var Key: Word; Shift: TShiftState); override

Arguments

Key

Key examined in the method.

Shift

Modifier(s) for the key examined in the method.

Description

KeyDown is an overridden method used to handle and apply virtual key code messages ( WM_KEYDOWN) received in the control. Key and Shift contain the virtual key code and the Shift-Ctrl-Alt modifiers for the message.

KeyDown ensures that the shortcut in NullValueKey is applied to the TDBLookup and the ItemIndex for the control. KeyDown calls the inherited method prior to exit.

See also

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