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

Preventing PopUps from closing when clicking selectables #751

Closed
xGhostShipIV opened this issue Jul 25, 2016 · 2 comments
Closed

Preventing PopUps from closing when clicking selectables #751

xGhostShipIV opened this issue Jul 25, 2016 · 2 comments

Comments

@xGhostShipIV
Copy link

Is it possible in anyway to prevent a non-modal popup menu from immediately closing after clicking a selectable?

@ocornut
Copy link
Owner

ocornut commented Jul 25, 2016

For a given Selectable() you can pass it the ImGuiSelectableFlags_DontClosePopups flag, however I intend to add a window/popup-wide runtime setting to disable this behavior by default. It's been requested by @MrMarkie in the context of #323 as with gamepad control it may be more desirable to tweak many values from a menu at once.

@xGhostShipIV
Copy link
Author

Excellent, thank you! I was looking to see if the popups took a flag to disable that feature and consequently missed that it was part of Selectable()

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

No branches or pull requests

2 participants