TextViews 2 line down scrolling
TextViews 2 line down scrolling
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.
-
- Posts: 262
- Joined: Tue Sep 17, 2013 6:50 am
Re: TextViews 2 line down scrolling
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
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
Re: TextViews 2 line down scrolling
I know that. I give log as example.First of all, this behavior is not specific to the log window but appears with every text view
on various occasions.
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.
-
- Posts: 262
- Joined: Tue Sep 17, 2013 6:50 am
Re: TextViews 2 line down scrolling
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
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