Op 27-08-13 18:50, Malcolm Poole schreef:
This happens because 'ยง' and the other 'characters' are represented in
UTF8 by more than one byte.

I reproduced your problem and got around it by replacing
Inc(testcaretpos);
by
Inc(testcaretpos, Length(Kars));

I don't know what consequences this might have for your navigation using
the arrow keys, though: I haven't had much experience working with
multibyte chars.

Hope this helps, anyway.

Hi,

Unfortunately, that does not work. I already tried that. The effect is the same.

I think this will not work. Maybe it's better to really simulate keypresses and send these to the application. I remember doing something similar in a Delphi application. I will have to look at that.

Thanks anyway.

Koenraad

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to