[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.OnUTF8KeyPress

Handler for a character entered by the user.

Declaration

Source position: controls.pp line 2286

public property TWinControl.OnUTF8KeyPress : TUTF8KeyPressEvent
  read FOnUTF8KeyPress
  write FOnUTF8KeyPress;

Description

This handler receives characters codes only, not control or other special key codes. Control keys should be handled by an OnKeyDown handler instead. The event handler can also convert the character code into a different value.

While OnKeyPress receives only ANSI characters (with possible loss of characters outside the ANSI codepage), the OnUTF8KeyPress handler receives the UTF-8-encoded character code.

See also

TWinControl.OnKeyPress

  

Handler for a character entered by the user.

TWinControl.OnKeyDown

  

Handler for keyboard key pressed.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.