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
{{ message }}
Repository navigation
SetInt(name,1) unable to collapse all treeNodes #2079
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
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.
Activity
ocornut commentedon Sep 12, 2018
With
SetInt(id, 0)you'll only close a single node, there's no way at the moment to close node recursively, other thana) 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.
yafacex commentedon Sep 14, 2018
I did SetInt(id,0) recursively and it doesn't work.I will check my code and tell you later.
ocornut commentedon Sep 30, 2018
@yafacex Any update on this?
ocornut commentedon Nov 21, 2018
Closing as per no repro, probable user error.
Internals: Added TreeNodeIsOpen() to facilitate discoverability. (#7553…
Internals: rename recently added TreeNodeIsOpen() -> TreeNodeGetOpen(…
Ocornut master (24/07) (#4)
TreeNode: moved TreeNodeGetOpen() helper to public API. (#3823, #9251, …
TreeNode: moved TreeNodeGetOpen() helper to public API. (ocornut#3823, …
TreeNode: fixed duplicate TreeNodeGetOpen() declaration. (#3823, #9251,