Short version: How do I iterate through specific data (say a StringList) adding information to the data structure I've associated with the VT?
I just downloaded Mike's Virtual Treeview earlier today and while I'm as impressed as everyone else with it =) I am stuck on some pretty basic stuff.
The tree will have 5 root nodes. Off of the root nodes will be 3 to 15 child nodes.
To populate the tree, I want to read information from an Ini file.
So, I read the sections from the ini file:
AppIni : TIniFile;
tmpList := TStringList.Create;
Now I have the section list and I can retrieve specific section values but I can't figure out how to use this information to create/add (?) my treenodes and associate the particular Ini section with the data structure for a given node.
The ini file looks like this:
2=The price of gas is crazy.
[Some other topic]
1=Another topic sentence here.
2=There can be many keys under each topic.
The treeview would look like this:
Some other topic
Clicking on SomeUniqueNumber node would allow access to the node's data (which is just the keys from that topic in the ini file).
Sorry to be so long winded about it.