-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
List boxes #129
Comments
Thanks for taking time to look into this! :) The draft looks pretty much like what I'm after. |
Aha! Looks very nice :) |
Here is the current state of the ListBox() function (uncommitted).
Note how at this point it may even make sense to just use BeginChildSelectableList/Selectable/EndChildSelectableList and do your stuff yourself, instead of trying to fit the data via a getter. Example code:
|
Along with ListBoxHeader(), ListBoxFooter() helpers.
It is committed. API
ListBox() looks like that. Note that it doesn't use any unexposed ImGui function.
(I have renamed the functions to ListBoxHeader / ListBoxFooter and the earlier exist in a variant that takes size in pixels). |
If you have any suggestion for adding a multi-selection version in core imgui let me know. |
Thanks! I shall give it a spin later today. |
Closing. |
There is currently a combo box element, which allows single selection. I believe it would be useful to also add support for a list box. As a minimum implementation, it could be based on the current combo box and support single selection.
More advanced implementation could include multiple selection with user-provided storage for selected item indices.
The text was updated successfully, but these errors were encountered: