RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBRichEdit.KeyDown Method

Supplements the inherited method to drive the dataset into edit mode when the user presses 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. Derived classes can override KeyDown to handle additional key combinations, but the inherited method should always be called.

Note: Applications cannot call this protected method directly. It is called automatically in response to Windows events.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!