-
-
Notifications
You must be signed in to change notification settings - Fork 101
PanelListBox Widget #193
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
PanelListBox Widget #193
Conversation
Thank you for contributing this. I didn't have time yet to look at it in-depth and to test the code, but on first sight it already looks great except for some minor details.
|
to insert new element at certain position * getPanelTemplate() which allows for customization newly created elements * rename SignalPanel to SignalPanelListBoxItem * fix formatting issues
Added new commit. Fixed the formatting errors (now it should follow SFML guidelines). Also, added method for getting panel template, so it can be freely changed. I was thinking about using some kind of |
Thanks again for creating the widget. I did make a few minor changes when I merged it:
|
I introduced ItemsWidth property for more flexibility (it was in first iteration, where horizontal scrollbar was still used). In that case user could potentially use larger panels than list box size. I think that it was unnecessary, if we decide that horizontal scrollbar is never shown and we should not exceed whole widget size. |
This is a pull request with PanelListBox Widget. The idea for this widget is to provide more flexibility for ListBox, so user can use Panel instead of Text.
Example code:
Which results in following PanelListBox:
There are still some functions which are missing, for example:
I'd be glad for any comments how can I improve this code.