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

Add a scrollable menu #15

Closed
ppizarror opened this issue Jul 12, 2018 · 8 comments
Closed

Add a scrollable menu #15

ppizarror opened this issue Jul 12, 2018 · 8 comments
Milestone

Comments

@ppizarror
Copy link
Owner

ppizarror commented Jul 12, 2018

That would be interesting, some ideas i have:
render the entire menu as an image, then clip the menu from a certain "y" coordinate to "min(y+Hy. maxY)" (where Hy height of the menu, maxY maximum menu rendered height).

Using some kind of y-overflow slider then that "y" coordinate can be changed 🤔

@anxuae
Copy link
Contributor

anxuae commented Mar 23, 2020

I found this old repo with some examples of scroll panel: https://code.google.com/archive/p/ezscroll/source/default/source

@anxuae
Copy link
Contributor

anxuae commented Mar 24, 2020

I will try to work on this issue

@ppizarror
Copy link
Owner Author

I will try to work on this issue

epic. I'll try to work on the color plugin

@anxuae
Copy link
Contributor

anxuae commented Apr 7, 2020

See PR.

Note that the structure of surfaces as fundamentally changed. The widgets are now drawn on a specific surface _widgets_surface. All the positions of the widgets are related to the origin of this surface.

menu_surfaces

@anxuae
Copy link
Contributor

anxuae commented Apr 7, 2020

Please test it and give me feedback.

Another point is the management of column, see examples/scroll_menu.py in the sub menu.
Currently column positions try to fit the menu width, this behavior shall be modified to expand whatever the menu width if force_fit_text=False.

But need some help on it to understand management of column and column_weights

@anxuae
Copy link
Contributor

anxuae commented Apr 7, 2020

Still have a bug in the text selection using the mouse when TextInput is scrolled

@ppizarror ppizarror added this to the v3 milestone Apr 8, 2020
@ppizarror
Copy link
Owner Author

Still have a bug in the text selection using the mouse when TextInput is scrolled

This has been fixed?

@anxuae
Copy link
Contributor

anxuae commented Apr 9, 2020

Yes, this issue is fully solved

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

No branches or pull requests

2 participants