Sign in Join
FPDoc Onlineexperiment

TDBComboBox.KeyPress procedure

Member of TDBComboBoxprotectedIn unit DBCtrls

Applies standard keystrokes to the control.

Declaration

pascal
procedure KeyPress(var Key: char); override

Arguments

Key

Keystroke character examined in the method.

Description

KeyPress is an overridden method used to apply standard keystrokes to the data-aware control. KeyPress calls the inherited method to process the keystroke character in Key. If the key is not handled in the ancestor, and is in the range #32..#255, it can be potentially applied to the Field in the linked dataset. FieldCanAcceptKey, in the implementation section, is called to to determine if the keystroke can be used and applied to the field type. When valid for the field, Key is set to #0 to suppress further processing of the keystroke.

See also

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