Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How can I set the width of a treeview?
I have only one column, but in the view I see 2 columns?
layout = c4d.BaseContainer() layout.SetInt32(ID_NAME, c4d.LV_USERTREE) self._treegui.SetLayout(1, layout)
Solved. def GetColumnWidth(self, root, userdata, obj, col, area): return 200 # All have the same initial width
hello,
that's because you set the width of your columns to more that what it show.
But you can simply passed that argument when you add your customGUI
settings.SetBool(c4d.TREEVIEW_RESIZE_HEADER, False)
In the c++ doc you have that page and in python this one
Cheers, Manuel