Is there any way to programmatically determine the minimum size required to display all of its elements without clipping them? For example, if the nodes have very long text captions, the tree would need to be wider than if they had, say, single-letter captions.
I've looked into the typical GetBestSize(), GetBestFittingSize(), GetAdjustedBestSize(), etc., but the value returned from each doesn't bear any relation to the content of the tree.
Is there any way to programmatically determine the minimum size required to display all of its elements without clipping them? For example, if the nodes have very long text captions, the tree would need to be wider than if they had, say, single-letter captions.
I've looked into the typical GetBestSize(), GetBestFittingSize(), GetAdjustedBestSize(), etc., but the value returned from each doesn't bear any relation to the content of the tree.
Unfortunately wxTreeCtrl doesn't have an implementation of DoGetBestSize that actually measures the contents of the tree. As far as I know I don't think that anybody has attempted it yet.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!