On Mon, 28 Aug 2006 14:00:54 +0200
Vincent Snijders <[EMAIL PROTECTED]> wrote:

> 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);

No, because of Delphi compatibility.


> > 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.

And it is not complete there.
What needs to be done to implement this in win32 intf?


Mattias

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

Reply via email to