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

MenuItem doesn't open popUp #1143

Closed
q-depot opened this issue May 16, 2017 · 2 comments
Closed

MenuItem doesn't open popUp #1143

q-depot opened this issue May 16, 2017 · 2 comments
Labels
menus menu bars, menu items popups

Comments

@q-depot
Copy link

q-depot commented May 16, 2017

Hi,

The MenuItem doesn't seem to open a pop up, I'm trying to open a PopUpModal, but I noticed the same issue with the stacked PopUp.
I tried to replicate the issue with the stacked pop up example in the demo window (imgui_demo.cpp #1203), if you replace the button with a menu item, the stacked popup doesn't open anymore.

Ideally I'd like to have a MenuItem that when I click it closes the current pop up and open a modal pop up.

@ocornut
Copy link
Owner

ocornut commented May 16, 2017

There's an unsolved issue/confusion, see #331 for details.
(Which incidentally shows up when you search for "menuitem popup" https://github.com/ocornut/imgui/search?q=menuitem+popup&type=Issues&utf8=%E2%9C%93 )

if you replace the button with a menu item, the stacked popup doesn't open anymore.

This is due to the fact that the button doesn't close the current popup. It would however cause similar issues in other configuration.

Closing this as duplicate. I'm keeping a watching on #331 and would like to find an elegant answer to it eventually.

@ocornut ocornut closed this as completed May 16, 2017
@q-depot
Copy link
Author

q-depot commented May 16, 2017

sorry about the duplicate :]

@ocornut ocornut added menus menu bars, menu items popups labels Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
menus menu bars, menu items popups
Projects
None yet
Development

No branches or pull requests

2 participants