Mattias Gaertner said:
> On Mon, 28 Aug 2006 02:45:55 +0200
> DoKeyPress is for ascii keys and DoUTF8KeyPress is for any key (UTF-8
> encoded). The widgetset should call IntfUTF8KeyPress *before* sending
> the ascii key message to the LCL.
Thanks, I'll look at it later.
However, what puzzles me additionaly in this context is the view from a
programmer (non LCL-developing people) perspective: a component such as
TEdit has an event:
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
Shouldn't this be changed to something like
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: TUTF8Char);
TUTF8Char being a String[7] or similar, in order that on all platforms the
programming model is the same. If one has to expect here a character
converted to a particular one byte encoding (current or particular CP) the
whole effort of Unicode enabling is undermined, IMHO. How is - for
instance - this event defined and used on Linux systems built up on UTF8?
Thank you for your time.
Regards,
Borut
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives