RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomColorBox.KeyDown Method

Generates an OnKeyDown event.

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

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. 

 

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