-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Intermediate Checkboxes #2644
Comments
I would like to design this as a more general feature (e.g. any widgets representing a "mixed" selection, or potentially even one single component of a multi-component widget), so the problem is that I'd be hesitant to design something too specific to Checkbox. I don't mind adding something in |
…support via ImGuiItemFlags_MixedValue. (#2644)
Pushed something to You'll need to add your own wrapper function (in any of your own .cpp file), e.g.
Usage
|
Well, that was fast! I like the generalisation of that concept, and for now this workaround is more than enough, thanks for the quick reply! |
Version: ImGui.NET 1.70
Branch: master
Operating System: Arch Linux
I was looking into adding Checkboxes that support an intermediate mode, but didn't find them. It's a feature that would be handy to have.
An intermediate Checkbox allows for a third state, which could generally be seen as a "i'm not sure", instead of a yes or no. Most GUI libraries support them, and they've plenty applications, especially for input forms. Occasionally they're also used to delineate when something is neither true or false. E.g. "Selected all" in a list, but only some items are selected:
https://docs.oracle.com/javafx/2/ui_controls/checkbox.htm
This document for JavaFX demonstrates the intermediate model fairly well.
Any chance this could be implemented in Dear ImGui?
The text was updated successfully, but these errors were encountered: