Unexpected Scroll when Typing After Picture or Protected Itm

General TRichView support forum. Please post your questions here
Post Reply
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Unexpected Scroll when Typing After Picture or Protected Itm

Post by Michel »

Hi Sergey,

This is something rather strange, so I am hoping you can easily reproduce it on your side (or that it is already fixed).
What's really bugging me is that I was never able to reproduce it with your RVActionTest or the RVEdit demo (your pre-built versions). Anyway, here goes...

Summary: Typing the first letter after either a picture or an item with the rvprDoNotAutoSwitch protection makes the line containing the cursor jump to the bottom of the window.

Reproduction Steps:
A) Create the simplest project imaginable: in a new project, place a TRichViewEdit and a TRVStyle on the form, hook them up, build. Not a single property changed from its design-time default.
B) Paste (or type) enough text into the editor to have at least 3 window heights worth of text - this is simply to have enough scrolling range.
C) Scroll to the middle of the document.
D) Drag a bitmap (~16x16) from Windows Explorer and drop it at the end of any line of text in the middle of the Editor (alternative: paste a picture that you cut from someplace else, e.g., RVActionTest).
E) Type any letter while the cursor is sitting right after the picture (and while there's no text after it on that line). At this point in time, this line jumps to the bottom.

In the step 'D' above, insertion of a picture can be replaced by insertion of a text item with the rvprDoNotAutoSwitch protection. It's just easier to reproduce with a picture.
Step 'E' (i.e., the problem) can be repeated by deleting the character typed and re-typing it.
I'm using TRichView version 1.9 and BCB6.

Any ideas? Thanks,

Michel
Sergey Tkachenko
Site Admin
Posts: 17309
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I cannot reproduce this problem, so I believe it was fixed in newer versions.
Michel
Posts: 92
Joined: Fri Oct 14, 2005 2:56 pm
Contact:

Post by Michel »

Excellent! Thanks, Sergey.
Post Reply