Hey guys,
Im having a little bit of a time understanding the tree view system. What im doing is working on a tiny program that helps with file managment. For example, you add directories to the tree view when you add a directory, it does a search within that directory and adds all the file contents as children under the directory name. All that seems to work fine. The problem Im having is identifying the ID's associated with the directories and it seem every command thats worth anything for the treeview object is requireing these. I have looked, looked and relooked at the reference for this object to find something that will give me a valid ID for the top level item. Unless I capture this value in a variable when i first create it, I cant seem to figure out how to get it.
Another example, I add a directory to the list, it then populates all the files within that directory as children of that directory in the tree view. Now lets say I want to add another random file to that directory from within the tree view, well to add a file to a specific item as a child you need its ID and I can find no way to retrieve this? Im sure im looking over the obvious but if someone could point me in the right direction here it would sure help.
Thanks