G
Guest
I would like to create a tree list with VB6, the list is not fixed. The size of it depends of the items and children of the items.
It looks like this
+[ ] Item
-[ ] Item
+[ ] Item 2 Sub Item
-[ ] Item 2 Sub Item
-[ ] Item 2 Sub Item 2 Sub Item
+[ ] Item 2 Sub Item 2 Sub Item 1 Sub Item
+[ ] Item 2 Sub Item 2 Sub Item
+[ ] Item
The [ ] is a checkbox which allows user to pick the item on the tree list
The + sign means the tree can be opened
The - sign means the tree has been opened
I would like to have a hierarchical list and pass the list to a function and it will create the above tree for me.
It looks like this
+[ ] Item
-[ ] Item
+[ ] Item 2 Sub Item
-[ ] Item 2 Sub Item
-[ ] Item 2 Sub Item 2 Sub Item
+[ ] Item 2 Sub Item 2 Sub Item 1 Sub Item
+[ ] Item 2 Sub Item 2 Sub Item
+[ ] Item
The [ ] is a checkbox which allows user to pick the item on the tree list
The + sign means the tree can be opened
The - sign means the tree has been opened
I would like to have a hierarchical list and pass the list to a function and it will create the above tree for me.