Page 1 of 1

TDbRichViewEdit scroll automatically with click in...

Posted: Thu May 07, 2009 12:54 pm
by Marcer
Hi,

I succeeded reproduce my problem with the demo program include in “RichView \ demonstrations \ Delphi \ dB demonstration \ 1 dbrichviewedit”.

My problem is the following:

When you adds the letters “a” to “z”, but you will add one letter per line, then one goes at the beginning of the text and with the arrow I go down until I would be on the letter “i”. On the following line one sees half of the letter “j”, then I click with the left button so that my cursor positions at the end of the letter “j”, there the letter “k” and “l” will then be selected and my cursor will find at the end of the letter “l”.

How to solve my problem if I want that my cursor positions at the end of the letter " j" under the conditions mentioned?

RE: TDbRichViewEdit scroll automatically with click in...

Posted: Thu May 07, 2009 8:12 pm
by Marcer
The version of my RichView component is 11.0.3

Posted: Fri May 08, 2009 7:00 pm
by Sergey Tkachenko
I'll test this problem in the next week.

RE: TDbRichViewEdit scroll automatically with click in...

Posted: Mon May 25, 2009 6:06 pm
by Marcer
Anybody are a solution?

Posted: Tue May 26, 2009 8:47 am
by Sergey Tkachenko
Sorry for delay.
The following change in the source code is required to fix this problem.
In CRVFData.pas, in TCustomRVFormattedData.MouseDown, near the end of the method, change

Code: Select all

DoOnSelection(True);
to

Code: Select all

DoOnSelection(not (rvstMakingSelection in State));

Posted: Tue May 26, 2009 12:06 pm
by Marcer
Thanks for your solution, it is functional.