-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Explicitly setting widget state / activating widget? #3985
Comments
Strictly speaking if I answer your question, underlying you would just need to call |
Thing is, I'm not trying to simulate user input, I was merely looking for a way to transfer an action done by the user from a widget to another. Here's my use case: I'm trying to replicate Blender's behaviour where you are able to split a Viewport by clicking and dragging from the upper-left corner, and I need switch the currently active widget from the button which is functioning as the hotspot area to the button which will be used as splitter between the two newly created Viewports. Turned out that your suggestion put me on the right track, I just needed to change the ActiveId of the current context. Looks a bit hacky but apparently everything is working perfectly. I understand that this is not by any stretch of imagination a perfect solution, but it may be worth to mention it for those looking to do something similar. I can reformulate everything with code examples if you think this may be helpful to someone. |
…ling, using nav queries. (ocornut#4449) Not using counter/modulo anymore and special provisions to handle tab wrapping with ImGuiListClipper. Wrapping may be done better as a next-frame forwarded request. Also one extra step toward ocornut#3949 ocornut#3985
Ideally I would like to able to do something like this:
A similar question has been asked a few days ago (#3949), but I'm not trying to build a testing environment, I'm just interested in being able to pass the Active state from a widget to another and was wondering if it was possible somehow.
The text was updated successfully, but these errors were encountered: