You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version/Branch of Dear ImGui:
Version: 1.83
Branch: docking
Back-end/Renderer/Compiler/OS
Windows 10
Microsoft Visual Studio Community 2019
Windows SDK: 10.0.18362.0
Platform toolset: v142
C++ standard: C++17
C: C17
Directx9.
Code.
It is docking branch. I want to set window background clear with SetNextWindowBgAlpha. For some reason it does not work. It works normaly. But soon as I set ImGui::GetIO().ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; and if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) { ImGui::UpdatePlatformWindows(); ImGui::RenderPlatformWindowsDefault(); }
It don't. It displays that "Bug" window as black box.
Edit:
I has 2 windows created. So tried to apply SetNextWindowBgAlpha to first window and it worked! For first window. Second one is still black.
Edit: Noticed that "Bug" window goes clear when I reduce its size to fit into sizes declared in CreateWindowEx!
I am thinking that code that allows creating docking branch windows anywhere on windows desktop is different from my CreateWindowEx. Mine uses WS_EX_TOPMOST | WS_EX_LAYERED
The text was updated successfully, but these errors were encountered:
You didn't specify which backends you are using which makes it hard to help you.
To start I think you can hack/modify your backend code and see how you can get the desired result.
When it works, sharing that code would be useful and we can decide how to correctly expose it.
Generally this ties to finishing/formalizing the work on #2766
You can also save platform_io.Platform_CreateWindow and platform_io.Platform_UpdateWindow, redirect them to your own code which will call the original backend code and apply extra modifications too.
Version/Branch of Dear ImGui:
Version: 1.83
Branch: docking
Back-end/Renderer/Compiler/OS
Windows 10
Microsoft Visual Studio Community 2019
Windows SDK: 10.0.18362.0
Platform toolset: v142
C++ standard: C++17
C: C17
Directx9.
Code.
ImGui::SetNextWindowSize(ImVec2(rs.right - rs.left, rs.bottom - rs.top)); ImGui::SetNextWindowPos(ImVec2(rs.left, rs.top + NewPositon)); ImGui::SetNextWindowBgAlpha(0.f); ImGui::Begin("Bug", 0, ImGuiWindowFlags_NoDecoration); ImGui::End();
It is docking branch. I want to set window background clear with SetNextWindowBgAlpha. For some reason it does not work. It works normaly. But soon as I set
ImGui::GetIO().ConfigFlags |= ImGuiConfigFlags_ViewportsEnable;
andif (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) { ImGui::UpdatePlatformWindows(); ImGui::RenderPlatformWindowsDefault(); }
It don't. It displays that "Bug" window as black box.
Edit:
I has 2 windows created. So tried to apply
SetNextWindowBgAlpha
to first window and it worked! For first window. Second one is still black.Edit: Noticed that "Bug" window goes clear when I reduce its size to fit into sizes declared in CreateWindowEx!
I am thinking that code that allows creating docking branch windows anywhere on windows desktop is different from my
CreateWindowEx
. Mine usesWS_EX_TOPMOST | WS_EX_LAYERED
The text was updated successfully, but these errors were encountered: