GxImage: KeyPress

KeyPress

Occurs when the user presses and releases an ANSI key.



 Event KeyPress(
	  ByRef KeyAscii As Integer )

Parameters

KeyAscii
An integer that returns a standard numeric ANSI keycode. Keyascii is passed by reference; changing it sends a different character to the object. Changing keyascii to 0 cancels the keystroke so the object receives no character.

Languages

[Visual Basic] Event KeyPress(ByRef KeyAscii As Integer)

[Delphi] procedure KeyPress(Sender: TObject; var Key: Char);

[C++] void OnKeyPress(short FAR* KeyAscii);

Remarks

[Delphi] The Sender parameter indicates which component received the event and therefore called the handler.

See Also

Class GxImage Overview GxImage Properties GxImage Methods KeyDown KeyUp