-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Description
Version/Branch of Dear ImGui:
Version: Last
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_d3d9.cpp + imgui_impl_win32.cpp
Operating System: Windows x86
My Issue/Question:
I want to simply attach some windows, to another, root window. Just like it is on this image:
https://cdn.discordapp.com/attachments/625026346405330966/696346745419857980/unknown.png
How can this be properly done?
Activity
ocornut commentedon Apr 5, 2020
Didn't follow requested guidelines or issue template.
Closing for now.
artemking4 commentedon Apr 5, 2020
Done.
ocornut commentedon Apr 6, 2020
You could be querying the pos/size of the central window then using SetNextWindowPos()/SetNextWindowSize() on the left and right window, what is the problem with that?
Note that you may find the Docking #2109 useful, and specifically what you are aiming at in a generalized way would be covered by Photoshop-style docking which as been discussed (#2248) but is unlikely to happen very soon.
artemking4 commentedon Apr 6, 2020
The problem is, that when i focus on any window of theese, they get on top, but others dont.
I tried using IsWindowFocused+FocusWindow, but this is gonna be painful when you have more than two windows.
artemking4 commentedon Apr 6, 2020
Here is a screenshot of what i mean

ocornut commentedon Apr 6, 2020
I don't understand why the focus would matter, your first example suggests non-overlapping windows and now you are showing showing completely different. And it's hard to understand what you've tried.
ocornut commentedon Apr 6, 2020
My bad, should have seen the clues,
Sorry but #1586