Skip to content

Multiple windows attached to one #3099

@artemking4

Description

@artemking4

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

ocornut commented on Apr 5, 2020

@ocornut
Owner

Didn't follow requested guidelines or issue template.

  • Please make sure you have read the guidelines.
  • Please provide more complete, your post is too ambiguous.
  • Please clarify what you have tried.
  • Please edit your post (don't create a new post) with the Issue Template shown in "New Issue" and reply here when edited.

Closing for now.

artemking4

artemking4 commented on Apr 5, 2020

@artemking4
Author

Done.

reopened this on Apr 5, 2020
ocornut

ocornut commented on Apr 6, 2020

@ocornut
Owner

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

artemking4 commented on Apr 6, 2020

@artemking4
Author

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

artemking4 commented on Apr 6, 2020

@artemking4
Author

Here is a screenshot of what i mean
c95f6377

ocornut

ocornut commented on Apr 6, 2020

@ocornut
Owner

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

ocornut commented on Apr 6, 2020

@ocornut
Owner

My bad, should have seen the clues,
Sorry but #1586

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ocornut@artemking4

        Issue actions