Skip to content

How to Get Docked Status of a Window before Begin() #8553

@Malkierian

Description

@Malkierian

Version/Branch of Dear ImGui:

1.91.6 docking

Back-ends:

n/a

Compiler, OS:

Win10 MSVC 2022

Details:

I've seen a couple of options for trying to get a window's docked status on the web, but only after the window has been opened. I'm trying to be able to modify a given user-defined color for the window background based on whether it's docked or not, so I need to know the docked status beforehand. However, using ImGui::GetID() with the same string that I use later to open the window with Begin() doesn't return anything useful (I feel like it's a garbage ID). Is there any way to get the raw data that would be stored in the .ini for that status, or some other way I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions