Horz Scroll bar snaps back to left margin

General TRichView support forum. Please post your questions here
Post Reply
TAG
Posts: 10
Joined: Wed Nov 02, 2005 10:12 pm

Horz Scroll bar snaps back to left margin

Post by TAG »

I work with very long lines, currently 32000 chars. I have set rvpaoNoWrap = true so my lines will not wrap.

The problem I am having is when I grab the "box" in the Hscroll bar and move it to the right. After about 5000 cols it starts to act strange. The displayed text does not show correctly when moving. It tends to go back to the start of the line and scroll to about 4000 and then go back to the start of the line and scroll out to 4000 again. So when I move the box across and let go, it returns to the beginning of the line.

This does not happen when I click to the left of the box and let it scroll by "page" across the file.

If I position the caret at the end of the line (press end) and then just click on the scroll box the text will snap back to the beginning of the line.

Any thoughts?
Sergey Tkachenko
Site Admin
Posts: 17750
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, such long lines are not supported. Horizontal scrolling limit is 32000 pixels.
TAG
Posts: 10
Joined: Wed Nov 02, 2005 10:12 pm

Re: Horz Scroll bar snaps back to left margin

Post by TAG »

OK, I want to revisit this issue as it is still a problem after 17 years...

I have a 1 table in the Richview. It has 342 columns in it.

If I curser to the end of the table my HScrollPos value is 35841. It scrolls fine and displays the table correctly.

If I click to the left or right of the scroll bar "handle" or click on the < or > the table will scroll correctly to values above 32767.

But if I click on the scroll bar "handle" and the scroll position is greater than 32767 the HScrollPos value is set to 0.

Is there a way to override this "click" so that the "handle" can have values that are not limited to a shortInt. Can you please redefine it as an int like the HScollPos?

This would really help me out a lot and get my client off my back.

Thanks for you help.
Sergey Tkachenko
Site Admin
Posts: 17750
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Horz Scroll bar snaps back to left margin

Post by Sergey Tkachenko »

Yes, it' possible to fix.
I'll provide a solution later in this week.
Sergey Tkachenko
Site Admin
Posts: 17750
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Horz Scroll bar snaps back to left margin

Post by Sergey Tkachenko »

The fix is sent in a private message.
It will be included in the next update.
Post Reply