I'm trying to build up a treectrl and I want to have multiple roots. See drawing below. Is this possible?
Code: Select all
+Root1-+-child1-+-child1-+-child1-+-leaf1
| | | |
| | | +-leaf2
| | | |
| | | +-leaf3
| | |
| | +-child2-+-leaf1
| | |
| | +-leaf2
| |
| +-child2-+-child1-+-leaf1
| | |
| | +-leaf2
| |
| +-child2-+-leaf1
| |
| +-leaf2
|
+-child2-+-child1-+-child1-+-leaf1
| | |
| | +-leaf2
| | |
| | +-leaf3
| |
| +-child2-+-leaf1
| |
| +-leaf2
|
+-child2-+-child1-+-leaf1
| |
| +-leaf2
|
+-child2-+-leaf1
|
+-leaf2
+Root2-+-child1-+-child1-+-child1-+-leaf1
| | | |
| | | +-leaf2
| | | |
| | | +-leaf3
| | |
| | +-child2-+-leaf1
| | |
| | +-leaf2
| |
| +-child2-+-child1-+-leaf1
| | |
| | +-leaf2
| |
| +-child2-+-leaf1
| |
| +-leaf2
|
+-child2-+-child1-+-child1-+-leaf1
| | |
| | +-leaf2
| | |
| | +-leaf3
| |
| +-child2-+-leaf1
| |
| +-leaf2
|
+-child2-+-child1-+-leaf1
| |
| +-leaf2
|
+-child2-+-leaf1
|
+-leaf2
Code: Select all
trectlComponentOverview->AddRoot( "Root1" );
trectlComponentOverview->AddRoot( "Root2" );
Best rgds,
--Geert