Skip to content
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

How to make windows that snap to locations and then stay sort off fixed? #1591

Closed
mario-132 opened this issue Feb 3, 2018 · 5 comments
Closed

Comments

@mario-132
Copy link

mario-132 commented Feb 3, 2018

Hi,

I am creating a OpenGL (game) engine kind off thing and i am using IMGUI for the GUI part.
I found it very easy to use so far, but i have a problem:
I would like to have windows that can snap to the sides of the OpenGL window and can be switched between like in this picture here:

In the picture he has 3 tabs named scene view, import asset and game view where he can switch between.
I would like to know how i could do that.
And I also have another question:
If I want, how could I make these 3 tabs movable, so I could move the game view window/tab to the side for example, or completely have it as a floating window?(but still in the same OpenGL window off course)

Could someone help me with this?

Thanks

@nem0
Copy link
Contributor

nem0 commented Feb 3, 2018

See #351

@nem0
Copy link
Contributor

nem0 commented Feb 3, 2018

I still assume you want docking, which is in the picture you posted. And that can be found in #351.

In case you really want just tabs, which is something different, see #261 or #1083

@nem0
Copy link
Contributor

nem0 commented Feb 3, 2018

Yes I'm the author of that. You can find everything in #351

@nem0
Copy link
Contributor

nem0 commented Feb 3, 2018

There's also more advanced version https://github.com/thennequin/ImWindow

@ocornut
Copy link
Owner

ocornut commented Feb 3, 2018

Tim, while your questions are legit they are also very general questions to complex problems and it looks like you haven’t researched it very much. As Mikulas pointed out that thread has references and you may also check for the various docking/tabs links in the Wiki.

The short answer is that I am working on an official solution but it’s not ready, and among third party solutions the one Mikulas wrote and which has been forked/tweaked by other people is a viable and functional option too.

The tabs in #261 were released as a short-term branch based on early Docking researchs, but it’s not much more than Tabs. It’s useful but not as useful as a full docking solution.

Closing this as duplicate of #351, feel free to ask questions here or therr tho.

@ocornut ocornut closed this as completed Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants