-
-
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
Drawing one widget over others widgets ? #1236
Comments
Hello Pacome,
I imagine what you are trying to do is display a big "DISABLED" thingie and block other inputs? Also see #211. Right now in your situation the simplest/dumb way to disable all inputs would be to draw a big InvisibleButton FIRST in the child window that would steal the inputs from the subsequent widgets. That is, until we add widespread support for #211. Currently ChildWindow never have automatic size so the contribution of the combo/dragint will only affect the scrollbar. Internally the variable that will lead to calculate the content size of a window is |
Exact, I would like to display something like "Disabled". |
For those who are interested in disabling the content of a ChildWindow, here is some code to be modified but giving a rough idea of how to do it :
And an example of usage :
Implementation of ImGui::TextWithBackground is missing, but you can easily guess what it does :) |
Hello,
I may have a strange question which is not very easy to explain with a classic usecase :
How do you correctly reset the cursor position as if the combo and the dragint were not drawn ?
Are there some side-effects, like the combo+dragint will not contribute to extend the ChildWindow's size ?
Thanks for your help
The text was updated successfully, but these errors were encountered: