Vcl.ExtCtrls.TCustomColorBox.KeyDown
Delphi
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
C++
DYNAMIC void __fastcall KeyDown(System::Word &Key, System::Classes::TShiftState Shift);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TCustomColorBox |
Description
Generates an OnKeyDown event.
Applications can't call this protected method. It is called automatically when the user first presses a key while the color box has focus.
Key is the key code of the key that was pressed.
Shift indicates the state of the Ctrl, Shift, and Alt keys when Key was pressed.
TCustomColorBox overrides the inherited KeyDown method to prepare for the selection of a new color. It then calls the inherited method, which generates an OnKeyDown event.