Borut Maricic schreef:

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?



A TEdit has a OnUTF8KeyPress event, it is not yet published in the object inspector, because it is only supported using the gtk interface.

Vincent

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

Reply via email to