The code in a simplified form is as follows:
for I := 1 to 10 do
begin
wp.CPPosition:=random(length(wp.text)-1);
// changes in the text
sleep(1000);
end;
How do I scroll to the cursor position (and make the changes visible) after each cursor position change. If the position occurs outside the window, the text is not scrolled.
Thank you