GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SetInt(name,1) unable to collapse all treeNodes · Issue #2079 · ocornut/imgui

SetInt(name,1) unable to collapse all treeNodes #2079

New issue
Copy link
New issue
Copy link
Closed
Closed
SetInt(name,1) unable to collapse all treeNodes#2079
Copy link
Labels
treetree nodes

Description

@yafacex
yafacex
opened on Sep 12, 2018
Issue body actions

aa51

I want all the collapseHeaders of treeNode to close using SetInt(name,0) when i click "fold all" button.Top collapseHeader did close as i expect,However when i clicked top collapseHeader,inner treeNodes left expand.Although GetInt("app.scenes.study.play_theme") == 0

Activity

  1. ocornut
    added
    treetree nodes
    on Sep 12, 2018
  2. ocornut commented on Sep 12, 2018

    @ocornut
    ocornut
    on Sep 12, 2018
    Owner
    More actions

    With SetInt(id, 0) you'll only close a single node, there's no way at the moment to close node recursively, other than
    a) iterating the open node and flagging them for closure,
    or b) using a dedicated storage for that tree so you can easily clear the entire storage at once.

  3. yafacex commented on Sep 14, 2018

    @yafacex
    yafacex
    on Sep 14, 2018
    Author
    More actions

    I did SetInt(id,0) recursively and it doesn't work.I will check my code and tell you later.

  4. ocornut commented on Sep 30, 2018

    @ocornut
    ocornut
    on Sep 30, 2018
    Owner
    More actions

    @yafacex Any update on this?

  5. ocornut commented on Nov 21, 2018

    @ocornut
    ocornut
    on Nov 21, 2018
    Owner
    More actions

    Closing as per no repro, probable user error.

  6. ocornut
    closed this as completedon Nov 21, 2018
  7. ocornut
    added 2 commits that reference this issue on Jul 15, 2024

    Internals: Added TreeNodeIsOpen() to facilitate discoverability. (#7553…

    ac7d6fb

    Internals: rename recently added TreeNodeIsOpen() -> TreeNodeGetOpen(…

    070c046
  8. Ciachociech
    added a commit that references this issue on Jul 24, 2024

    Ocornut master (24/07) (#4)

    6ed5aa9
  9. ocornut
    added a commit that references this issue on Feb 23, 2026

    TreeNode: moved TreeNodeGetOpen() helper to public API. (#3823, #9251, …

    f6e0953
  10. brentfpage
    added a commit that references this issue on Feb 24, 2026

    TreeNode: moved TreeNodeGetOpen() helper to public API. (ocornut#3823, …

    192667c
  11. ocornut
    added a commit that references this issue on Feb 24, 2026

    TreeNode: fixed duplicate TreeNodeGetOpen() declaration. (#3823, #9251,

    0666da6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    treetree nodes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.