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

How to disable user interaction on widget #1012

Closed
sonoro1234 opened this issue Feb 8, 2017 · 5 comments
Closed

How to disable user interaction on widget #1012

sonoro1234 opened this issue Feb 8, 2017 · 5 comments

Comments

@sonoro1234
Copy link

Hi,

I have a curve widget and show three of them (one for each RGB channel)
As they are quite big I am rendering them all at the same CursorScreenPos so that you can see them all because of transparency.
curvas
When user interacts only the topmost of them should respond.
How can achieve this

@sonoro1234
Copy link
Author

Now I am solving this drawing first the curve I want to interact with. The problem is that it appears not at the top but at the bottom!

@ratchetfreak
Copy link

draw it again last?

@sonoro1234
Copy link
Author

Yes but is an expensive widget!

@sonoro1234
Copy link
Author

I am using ratcherfreak proposal. Perhaps BeginDisabled()/EndDisabled(); proposal in #211 would be the way.

ocornut added a commit that referenced this issue Oct 25, 2017
…isuals aren't altered), in imgui_internals.h, undocumented/unsupported (#211, #1012)
@ocornut
Copy link
Owner

ocornut commented Oct 25, 2017

Closing as duplicate. @sonoro1234, see #211 for beginning of a solution.

@ocornut ocornut closed this as completed Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants