How to have a CollapsingHeader opened at start?


#1

Hello,

I use a CollapsingHeader and I would like it to be opened when the GUI starts. I don’t find which flag to use. ImGuiTreeNodeFlags_Leaf is just making it open forever.

Thank you in advance for your help.
Best regards,
Barth


#2

You can use ImGuiTreeNodeFlags_DefaultOpen

Or SetNextTreeNodeOpen() as well.


#3

Thank you very much, not sure how I could miss that in the list of options !