Is that possible to hide column (header) in TreeView?
-
Hi Everyone!
I would like to dynamically show or hide headers in my tree view based on user settings, similar to the Layer Manager in C4D.
I am aware that I can specify the number and names of headers when setting the layout, but I need to restart my plugin to apply these changes.
My goal is to be able to dynamically show or hide headers without the need for a plugin restart.
Is this achievable? -
Hey @gheyret,
Thank you for reaching out to us. It depends a bit on how you mean your question. You do not have to "restart" your plugin to update the layout of a tree view (not quite sure what you mean with restart). You can simply call
TreeViewCustomGui.SetLayout
again with your new layout and then.Refresh
. But there are no methods likeShow/HideColumn
, you have to always reinit the whole layout of the tree view.Cheers,
Ferdinand -
It seems I was overcomplicating things. I will give it a try tonight.
Thank you very much for your prompt reply.
Cheers! -
-
@czt_306 It looks realy cool!