UniScribe SynEdit painting

Post Reply
Gárnet
Posts: 1
Joined: 31 Jan 2010 16:33

UniScribe SynEdit painting

Post by Gárnet » 31 Jan 2010 18:13

Hi!

I'm trying to implement correct complex script painting and caret handling in SynEdit.
I got few ideas, but there's one thing which blocks me to move further.

SynEdit wipes off a word in complex script if it is scrolled or moved behind the screen.

Before:
Image

After moving behind the screen and restoring back:
Image

It appears that it always paints only visible part of the word without taking into account
hidden part (which is essential if painting a complex script).

Is it possible at all to avoid this?

I can imagine how to deal with caret, buffer / display methods to support complex scripts,
but with that glitch I can't move along...

Maël
Site Admin
Posts: 1124
Joined: 12 Mar 2005 14:15

Re: UniScribe SynEdit painting

Post by Maël » 01 Feb 2010 15:46

Gárnet wrote:It appears that it always paints only visible part of the word without taking into account
hidden part (which is essential if painting a complex script).

Is it possible at all to avoid this?
It sure would be possible. You would have to change quite some parts of the painting logic since SynEdit was never meant to support complex scripts. I don't know how to do it, though without looking into the code myself and trying out. I can just tell you it won't be that easy.

Post Reply