Search code examples
c++wxwidgets

wxTreebook with multiple levels


I'm trying to create a wxTreebook object with multiple (3 in particular) levels of pages but it seems to be imposible.

Can anyone say if one can create such objects with wxTreebook or it is necessaryto use wxTreeCtrl?

enter image description here This here is want i want it to look.


Solution

  • wxTreebook is indeed limited to a single level of depth because it was thought that having deeper nesting would be too confusing for the users. So you will have to use a standalone wxTreeCtrl to achieve what you want -- although perhaps simplifying the hierarchy and using wxTreebook could be a better idea from the UI point of view.