-
Notifications
You must be signed in to change notification settings - Fork 63
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
ListBox widget added. #31
base: master
Are you sure you want to change the base?
Conversation
Looks like the whole BREW stuff is missing.
It's quite simple. Just have a look at the existing BREW elements. |
The whole BREW rendering seems to be integrated inside the widget itself (in |
Sure, go for it. |
Its ListBox implementation doesn't support scrollbars (it keeps growing when items are added). Should I add support for scrollbars (vertical at least) or keep it simple while the user can still have scrollbars by combining it with a |
It would be nice if the user didn't have to do so much work themselves for something they almost always expect. Add the scrollbars... 😉 |
Ok, will do it :) |
I know how to add and manage the vertical scrollbar (scroll item by item) but I don't know how I can manage a horizontal scrollbar. Putting "..." at the end of the item's text if it is too large could be a better (and easier ^^) idea. |
Made the implementation in my feature/listbox branch : https://github.com/victorlevasseur/SFGUI/tree/feature/listbox What do you think of it ? (some features are still missing) |
I'm also waiting for this one :) |
I've created simple ListBox widget basing on ComboBox and CustomWidgetExample. Selection works same as in windows explorer. Check out the example.
I'm not familiar with the styles engine, so I'd be grateful if someone made selection color customizable(currently hardcoded sf::Color::Blue).