Vcl.ExtCtrls.TCustomColorBox.KeyPress

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure KeyPress(var Key: Char); override;

C++

DYNAMIC void __fastcall KeyPress(System::WideChar &Key);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomColorBox

Description

Generates an OnKeyPress event.

Applications can't call this protected method. It is called automatically when the user presses a key while the color box has focus.

Key is the key code of the key that was pressed.

TCustomColorBox overrides the inherited KeyPress method to display a color selection dialog if the user presses the Enter key while the custom color item has focus. Otherwise, KeyPress calls the inherited method, which generates an OnKeyPress event.

See Also