Page 1 of 1

position after inserting TAB

Posted: Thu Apr 05, 2007 2:39 pm
by erikvdw
When a document is loaded in the richvieweditor and the document is greater than 1 page inserting TAB results in changing top of the document.
After TAB-Key was typed the document scrolled and the position of the caret is moved to the end of the inputscreen.

It's difficult to explain, so I would try to make is visible:

Document looks like:

a
b
c
d
e
f
g
h
i
j

The input window is not very big so lines a to e is shown. Scroll down till line h is last line in window. Now insert a tab at line f. You will line f is scrolled to the last line in window.

Posted: Thu Apr 05, 2007 3:14 pm
by Sergey Tkachenko
I cannot reproduce this problem.

Do you have some TRichViewEdit events assigned?

reformat

Posted: Thu Apr 12, 2007 8:30 am
by erikvdw
After reformat the editor seem to scroll.
I started with the actiontest demo source and i can't reproduce it either in the actiontest.exe.
As events is a keydown implemented:

Code: Select all

  if Key in [VK_SPACE, VK_RETURN, VK_TAB] then begin
    {
      // uncomment if you use Addict3
      RVA_Addict3AutoCorrect(RichViewEdit1);
    }
    rvActionInsertHyperlink.DetectURL(rvEditor);
    rvActionInsertHyperlink.TerminateHyperlink(rvEditor);
  end;
If I grayed out this function it still happened in our program.

inserting picture same effect

Posted: Thu Apr 12, 2007 8:55 am
by erikvdw
By inserting a picture or some other insert action the same effect is shown.

problem fixed

Posted: Thu Apr 12, 2007 11:16 am
by erikvdw
We had upgraded the richview, but didn't update the richviewactions. After update richviewactions package troubles are gone.

version info

Posted: Thu Apr 12, 2007 11:17 am
by erikvdw
We used 1.48 of the richviewactions and now 1.53

Posted: Thu Apr 12, 2007 2:58 pm
by Sergey Tkachenko
Probably that was because of TRVRuler