-
-
Notifications
You must be signed in to change notification settings - Fork 27
Mainly scrolling and line updating when Tedit windows are partially offscreen #1673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mainly scrolling and line updating when Tedit windows are partially offscreen #1673
Conversation
…ffscreen This is hopefully getting near the end of the rework of scrolling aimed at avoiding flicker with the fast repetitive scrolling that wheelscroll can produce. The idea is to calculate what part of the screen bitmap can just be moved around, including the selection highlighting, so that only newly revealed lines need to be redisplayed. The easier cases are when the window is totally on screen. Next easiest, in previous versions, is when the bottom of the window is offscreen. This aims at the hardest case, where the top of the window is not visible. This also includes a fix to the misnamed \TEDIT.COPYINSERTFN that @nbriggs noticed, plus perhaps some other issues that have been reported that I now don't remember. It does not address the problem that @pamoroso recently noticed, where type-in selection is getting screwed up (and another glitch where type-in overflow at the end of the window moves up too many lines).
|
In this version (haven't checked older versions), when I open a TEdit window, type some text then type delete the blinking cursor disappears. If I type another character the character appears and the cursor reappears and starts blinking again. |
|
If you place the TEdit window so that the left side of it is offscreen and then scroll it (I was using trackpad), then about as much as is off the left side of the screen doesn't scroll on the right hand side of the window. |
|
Now if you attempt to shift-select a SKETCH into the end of the document it gets further, but dies with because NIL is not a number for the IDIFFERENCE. |
|
now that we're running on faster hardware, and scrolling is a user-interaction-driven update, why not handle scrolling by just REDISPLAYFN the text after you scroll? |
@pamoroso reported incorrect selection highlighting when typing at the top of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might fix Paolo's #1662 but the scrolling offscreen windows problem remains. The shift-select of sketches is also still broken.
|
@nbriggs at the meeting today 4/29/24 we came to a different resolution after I added you to the reviewer list. Run has some other fixes he's still working on and will close this PR and replace itwith another. |
This replaces PR #1673, which should be closed and deleted when this is merged.
This is hopefully getting near the end of the rework of scrolling aimed at avoiding flicker with the fast repetitive scrolling that wheelscroll can produce. The idea is to calculate what part of the screen bitmap can just be moved around, including the selection highlighting, so that only newly revealed lines need to be redisplayed. The easier cases are when the window is totally on screen. Next easiest, in previous versions, is when the bottom of the window is offscreen. This aims at the hardest case, where the top of the window is not visible.
This also includes a fix to the misnamed \TEDIT.COPYINSERTFN that @nbriggs noticed, plus perhaps some other issues that have been reported that I now don't remember.
It does not address the problem that @pamoroso recently noticed, where type-in selection is getting screwed up (and another glitch where type-in overflow at the end of the window moves up too many lines).