Skip to content
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

The scrollbar doesn't work in the "homescreen.cpp" demo #879

Open
yurivict opened this issue Jun 6, 2024 · 3 comments
Open

The scrollbar doesn't work in the "homescreen.cpp" demo #879

yurivict opened this issue Jun 6, 2024 · 3 comments

Comments

@yurivict
Copy link

yurivict commented Jun 6, 2024

The "paragraph" tab has 2 panes, and the left pane has a scrollbar.

Problem:
It is not clear how can one ever use this scrollbar.
Pressing the "Down" button doesn't move focus from the "paragraph" tab header down to the left pane.
The scrollbar can't be dragged down with the mouse.
Mouse wheel events don't scroll the left pane.

rev. a715a76
konsole-a715a76
FreeBSD 14.0

@yurivict yurivict changed the title Scrollbar doesn't work in the "homescreen.cpp" demo The scrollbar doesn't work in the "homescreen.cpp" demo Jun 6, 2024
@ArthurSonzogni
Copy link
Owner

Hello!

Yes, this wasn't meant to be scrollable.
We probably want to improve it to make it clearer.

@yurivict
Copy link
Author

yurivict commented Jun 9, 2024

Hi!

But if the vertical bar is resizable using the mouse, then it's natural to expect that the nearby scrollbar is also draggable using the mouse. Users usually drag scrollbars.

No?

@cculianu
Copy link

cculianu commented Jun 30, 2024

Hi there Arthur.. I really like your library and just discovered it recently and am using it now to write some small test programs to play with it. I love the aesthetics of the programming style you chose and I also like some of the implementation details you went with. Truly a great deal of thought and labor and expertise went into the design of this most excellent and one-of-a-kind library. C++ as a language has increased in its utility as a result of this one very well designed lib!

In my early playing with the lib, I also was surprised that the scroll bar has no (easy) way for user-controlled scrolling. I am supposing the way that this component was designed basically just leaves room for it to be programmer-updated to "focus" text/elements down lower or higher and the scroll-bar the just scrolls towards things in focus. So it's more of a programmer-oriented rather than user-oriented component.

Still though, one is left feeling that some use-cases perhaps are being neglected. Would it be possible to design-in some sort of buiilt-in scrolling ability into the scroll control? So that it can be user-scrollable? One can imagine certain UIs that would have such a component on screen.. say for logs files or a text viewing pane.. where really it's up to the user to scroll.. and the programmer would rather it be a passive control that "just works"... sort of the way checkboxes and radio buttons and other controls are already -- they fully encapsulate their functionality and the programmer doesn't need to update their state (unless he wants to), to achieve the fully realized behavior of the control in question.

So.... with all that being said: Is there any natural or "easy" way you can update the implementation of the scrollbar or add a similar component that can just be easily and automatically user scrolled?

I went through the other issues and it seems other people have wanted this capability and the various work-arounds they came up with seem to (mostly) work but the complexity of their workarounds leaves me thinking ... it does look like a missing feature ..

EDIT: #176 <--- Oh I missed this! You have this as a desired enhancement. Great! (I had been looking ad closed issues.. didn't see this is one of the open issues! Greeat!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants