[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 2069

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

Description

This handler only receives characters, not control or other special keycodes. Control keys should be handled by an OnKeyDown handler instead.

The handler can convert the character into a different one.

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

See also

TWinControl.OnKeyDown

  

Handler for keyboard key pressed.

TWinControl.OnKeyPress

  

Handler for a character entered by the user.

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads