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;

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?

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.

Regards,
 - Graeme -

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

Reply via email to