Hi Grzegorz,
···
2007/5/16, Grzegorz Adam Hankiewicz <ghankiewicz@rastertech.es>:
I would like that the ComboTreeBox could set its width depending on the
state of the inner tree. I'm trying the attached test case but see no
way how to make that work, the area reserved for the combo is much
smaller than the width of the elements in the list.I guess I could try iterating through the elements myself calculating
the text size and then set the combo to that size. However, how would I
calculate the displacement of the hierarchy for each node?
There's wx.TreeCtrl.GetBoundingRect(item). Maybe you could iterate
over all items in the tree and determine the widest item that way and
then force the ComboTreeBox to be that width?
Cheers, Frank