Lists and structures in structures

Just starting out? Need help? Post your questions and find answers here.
Cantor
New User
New User
Posts: 8
Joined: Fri May 09, 2003 10:34 pm

Lists and structures in structures

Post by Cantor »

Hi ev'rybody!

I want to build a tree with different items and subitems like this:

ITEM1
|
|--SUBITEM1.1
| |
| |--SUBSUBITEM1.1.1
| | |
| | |--SUBSUBSUBITEM1.1.1.1
| | |--SUBSUBSUBITEM1.1.1.2
| | |--SUBSUBSUBITEM1.1.1.3
| | |--(and so on)
| |
| |--SUBSUBITEM1.1.2
| | |
| | |--SUBSUBSUBITEM1.1.2.1
| | |--SUBSUBSUBITEM1.1.2.2
| | |--(and so on)
| |
| |--SUBSUBITEM1.1.3 (and so on)
| |
|--SUBITEM1.2
| |
| |--SUBSUBITEM1.2.1
| | |
| | |--SUBSUBSUBITEM1.2.1.1
| | |--SUBSUBSUBITEM1.2.1.2
| | |--SUBSUBSUBITEM1.2.1.3
| | |--(and so on)
|
ITEM2
|
|--SUBITEM2.1
| |
| |--SUBSUBITEM2.1.1

and so on. The items have to be shown in a treegadget.

My question: How Do I have to put the (sub(sub(sub)))-Items into a list or into a structure? The tree is dynamic that means that I want to insert or delete a new item at any time and anywhere...

--
Greetings and sorry for my bad english... ;-)
Martin.
Ollivier
Enthusiast
Enthusiast
Posts: 281
Joined: Mon Jul 23, 2007 8:30 pm
Location: FR

Post by Ollivier »

You can see an example of tree here.

Ollivier
Post Reply