TextViews 2 line down scrolling

All graphical and user interfaces problems

TextViews 2 line down scrolling

Postby X512 » Sat Jul 16, 2016 4:27 pm

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.
X512
 
Posts: 44
Joined: Sat Feb 07, 2015 2:51 pm

Re: TextViews 2 line down scrolling

Postby Josef Templ » Tue Jul 19, 2016 7:57 am

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
Josef Templ
 
Posts: 248
Joined: Tue Sep 17, 2013 6:50 am

Re: TextViews 2 line down scrolling

Postby X512 » Wed Jul 20, 2016 3:01 pm

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.
X512
 
Posts: 44
Joined: Sat Feb 07, 2015 2:51 pm

Re: TextViews 2 line down scrolling

Postby Josef Templ » Thu Jul 21, 2016 7:46 am

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
Josef Templ
 
Posts: 248
Joined: Tue Sep 17, 2013 6:50 am


Return to GUI problems

Who is online

Users browsing this forum: No registered users and 0 guests