Anyway to add maximization and minimization when a window is undocked.
Version/Branch of Dear ImGui:
Version 1.92, Branch: docking
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
Windows 10 + MSVC 2022
Full config/build information:
No response
Details:
Is it possible to add a minimize button and a maximize button to the windows when they are undocked from the main window?
I see a close window button just want to add a minimize and maximize one. But only when they are on their own glfw window, outside the main window. Plainly put how can I add two buttons to the dock window titlebar, when the dock window is floating outside the main window.
I tried hooking the hook. and just add the maximize/minimize to the window being created. But that didn't worked as planned either get nothing or get two titlebars (the windows one and the imgui one).
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
Duplicate of #3486 This is not supported as of yet (will be eventually) but you may enable OS decoration to get access to OS buttons.
How to enable OS decoration
Set ImGuiIO::ConfigViewportsNoDecoration to false.
设置为 。
ImGuiIO::ConfigViewportsNoDecoration``false
oh ,thanks