RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBMemo.KeyDown Method

Overrides the inherited method to put the dataset in an editing state if the user types Del or Shift+Insert.

Pascal
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
C++
virtual __fastcall KeyDown(Word Key, TShiftState Shift);

KeyDown first calls the inherited method, which calls the OnKeyDown event handler. KeyDown next attempts to put the dataset into an editing state when the user types Del or Shift+Insert. If the memo control is not linked to a dataset, KeyDown discards the keystroke. Derived classes can override KeyDown to handle additional key combinations, but the inherited method should always be called. 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!