I am trying to make a program which shows files in their folders as a tree.
Therefor I use the treeview library.
I am as far as displaying all folders and files in a tree view but are unable to retrieve the filename with there coresponding nodedata when clicked on a tree item.
I have searched in this forum and found several trheads but i have no luck, it did not work so far.
Can someone help me.
I need to save some data per file and know that the tree1.imageindex can be used there. I need help to find out how it works. Saving the index to a node so I can match that number to a filename save in a list.
I have looked to the given programs but they are so complicated I have not got time to find out all functionalities.
Can someone help me changing my code (post # 1) so I can give each item in the tree list a numeric index and retrieve that index number when an item in the tree is clicked.
Thanks for your help.
I now have a working structure to select folders or files and than knowing which is selected. I will continue working on my program and will post in a later stadium the results.
My program works but not the same on the desktop and the device.
When run on the desktop, it works as I think it should, showing folders and files.
But on me device I only see the files in the root, any files in other folders don't appear.
My program works but not the same on the desktop and the device.
When run on the desktop, it works as I think it should, showing folders and files.
But on me device I only see the files in the root, any files in other folders don't appear.
Erel, forget about this problem, it was a case of different root folders, on my desktop with files and so it happens to be, on my device another location without files. My fault. It works okee now.