-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
About ImGui::ButtonBehavior Function #3495
Comments
I read the source code of IsWindowFocused function, |
This is my Lua code:
end` |
Hello, I don't understand your issue but have answered in #3379. |
I saw this post in the discussion forum:
https://github.com/ocornut/imgui/issues/3379
This is exactly what I need, but there are some problems:
If I want to use the method you provided, can I only monitor the window generated by the Begin() function?
I use Begin("A") to generate window A,
Then in window A, use BeginChild("B") to generate child window B,
Then I use:
CurID = g.HoveredWindow->ID; CurRect = g.HoveredWindow->Rect();
Get the required data,Use for ButtonBehavior function,
Treat CurID and CurRect as the first and second parameters of the ButtonBehavior function.
In other words, I want to use this method to simulate the dragging action in the child window.
But it seems that the child window cannot be the same as the root window. I don't know where is the problem ?
The text was updated successfully, but these errors were encountered: