How to create this treeview?
Posted: Wed Jul 27, 2005 3:24 pm
				
				Hi,
I have a problem which proves to be quite obstinate in the meantime. I have the following data (strings with paths from a file). They are all in a linked list, sorted by name:
These values should get shown in a treeview like this:

Please notice, that for ERGEBNISSE the parent may be seperately given (DURY). As you can see for YTNEF this is not everytime given. (TEST is not seperately given).
I have done this some time ago with the key- and parent- methods of every entry in VB. I simply don't get it to run in PureBasic.
Second problem:
If an entry is marked, I must therefore get the whole path (eg \TEST\WMPARSER\). This was the FullPath- method of the TreeViews in VB. I would do this with a key-value (if the PB-TreeView would have something like this...).
Now, how can I get the values right into the treeview? And how can I get the selected full path?
Kukulkan
			I have a problem which proves to be quite obstinate in the meantime. I have the following data (strings with paths from a file). They are all in a linked list, sorted by name:
Code: Select all
\BBU\ANGEBOTE\
\DURY\
\DURY\ERGEBNISSE\
\TEST\YTNEF\
\TEST\WMPARSER\
\TEST\LIBYTNEF-1.5.TAR\LIBYTNEF-1.5\LIBYTNEF-1.5\
\TESTS\
Please notice, that for ERGEBNISSE the parent may be seperately given (DURY). As you can see for YTNEF this is not everytime given. (TEST is not seperately given).
I have done this some time ago with the key- and parent- methods of every entry in VB. I simply don't get it to run in PureBasic.
Second problem:
If an entry is marked, I must therefore get the whole path (eg \TEST\WMPARSER\). This was the FullPath- method of the TreeViews in VB. I would do this with a key-value (if the PB-TreeView would have something like this...).
Now, how can I get the values right into the treeview? And how can I get the selected full path?
Kukulkan