On Tue, 17 Jul 2007 08:25:15 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Maybe I'm not understanding Unicode (UTF-8 to be more precise) 100%
> yet, but isn't the OnKeyPress defined incorrectly, to work with UTF-8
> input.
> 
> TKeyPressEvent = procedure (Sender: TObject; var Key: Char) of object;

This is for compatibility.

 
> The Key parameter is defined as a Char type, which is limited to the
> first 256 Unicode (or ASCII) characters.  Shouldn't the TKeyPressEvent
> be redefined as a Word to be able to work with Unicode?

A word is not sufficient for unicode.

 
> I am trying to solve this same problem in fpGUI and seeing that Delphi
> and Lazarus has the same issue, I can ask the question here.

See
http://wiki.lazarus.freepascal.org/LCL_Key_Handling


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to