TextViews 2 line down scrolling

All graphical and user interfaces problems
Post Reply
X512
Posts: 72
Joined: Sat Feb 07, 2015 2:51 pm

TextViews 2 line down scrolling

Post by X512 »

If text line is written to bottom of log, it scrolls 2 line instead of 1. Also if keyboard down key is pressed in text, text scrolls 2 line when caret are at bottom of view. This is annoying and it will be good to fix it.
Josef Templ
Posts: 262
Joined: Tue Sep 17, 2013 6:50 am

Re: TextViews 2 line down scrolling

Post by Josef Templ »

First of all, this behavior is not specific to the log window but appears with every text view
on various occasions.

It seems that this kind of scrolling is performed by a certain fixed amount of y coordinates.
Depending on the line height this results in two lines or three or 1 or 1.2345 lines.

I am afraid this behavior is not so easy to change but you can try.

- Josef
X512
Posts: 72
Joined: Sat Feb 07, 2015 2:51 pm

Re: TextViews 2 line down scrolling

Post by X512 »

First of all, this behavior is not specific to the log window but appears with every text view
on various occasions.
I know that. I give log as example.
Problem is in TextViews.StdView.ShowRangeIn. I did some tests and found that if font size is large, line with caret not become completely visible both for scrolling up and down. Also instead of view height frame bottom is used as bottom limit, I don't know why. If I make text view frame clipped, for example put to form so upper or lower part is not visible, scrolling down works, but scroll up doesn't.
Probably it will be good to rewrite that procedure.
Josef Templ
Posts: 262
Joined: Tue Sep 17, 2013 6:50 am

Re: TextViews 2 line down scrolling

Post by Josef Templ »

Probably one reason for this fixed-step scrolling behavior is that it also works with embedded pictures
or other large embedded views. They can be scrolled partially e.g. with mouse wheel forward/backward instead of scrolling the whole line in all cases.

- Josef
Post Reply