Page 1 of 1

TRichView typewriter scrolling

Posted: Sat Feb 06, 2010 4:52 pm
by jobedom
I'm trying to achieve the effect named as "typewriter scrolling", which keeps the caret in a fixed vertical position.

I used OnChange event and calculated the delta needed to correct the scrolling point using ScrollBy, but then I get some repainting glitches (visible paragraphs appear repeated two/three times inside the control).

Is there an easy way to get this effect?

Posted: Sun Feb 07, 2010 6:13 pm
by Sergey Tkachenko
Do not use ScrollBy.
Use ScrollTo (and please read "Scrolling in RichView" topic in the help file, it explains limitations of vertical scrolling)