Skip to content

Open specific tree node programmatically #5423

Description

@RandyGaul

Version/Branch of Dear ImGui:
Version: Dear ImGui 1.84 WIP (18313)
Branch : master

My Issue/Question:

When using tree nodes is it possible to expand a specific tree node arbitrarily? I'm implementing undo/redo for my UI, and after navigating around and undo-ing the last edit, I'd like to expand any tree nodes to the item edited, but am struggling to figure out how to expand anything beyond the next item with SetNextItemOpen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    label/id and id stackimplicit identifiers, pushid(), id stacktreetree nodes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions