wxTreeCtrl, hidden root incompatible with ExpandAll() ?
Posted: Sat Aug 18, 2007 9:57 am
I want to use a wxTreeCtrl with wxTR_HIDE_ROOT, but when tree's root is hidden, ExpandAll() runs an assertion.
So what's the matter ?
I know that a hidden root cannot be collapsed, that's just a feature isn't it ? But why is it not possible to run a full tree expansion with a hidden root ? The behaviour seems to be the same with wxTR_HIDE_ROOT, we must call AddRoot() and then add first childs to this wxTreeItemId... Why does the control doesn't manage the expansion/collapse under root lvl ?
So what's the matter ?
I know that a hidden root cannot be collapsed, that's just a feature isn't it ? But why is it not possible to run a full tree expansion with a hidden root ? The behaviour seems to be the same with wxTR_HIDE_ROOT, we must call AddRoot() and then add first childs to this wxTreeItemId... Why does the control doesn't manage the expansion/collapse under root lvl ?