TRichView typewriter scrolling

General TRichView support forum. Please post your questions here
Post Reply
jobedom
Posts: 1
Joined: Sat Feb 06, 2010 4:47 pm

TRichView typewriter scrolling

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Post Reply