|
-
Apr 5th, 2002, 04:16 PM
#1
Thread Starter
Fanatic Member
adding folders to a tree view.
i need an example of how to add folders to a listview. for example if i had 3 folders, folder 1 and folder 2 are in the same folder, and folder 3 is in folder 1. the code would add the name for folder1 and folder2 to the treeview and then add folder3 as a child or subitem for folder1.
thx.
FlameWave Technologies - internet tools
-
Apr 5th, 2002, 04:57 PM
#2
I am about a day or so away from creating the ultimate folder browser tree view class.
If you can wait till then, I'll share it with ya.
-
Apr 5th, 2002, 05:41 PM
#3
-
Apr 5th, 2002, 06:20 PM
#4
I didn't know you could drag and drop in the tree view . . .
If you can, then I'll look at it (and probably take another day or so)
It will however do the following:
Show icons representing files or folder
Show drives
When something is expanded, the contents of that item are loaded THEN, not at the creation of the treeview.
Numpad * still works though.
It handles changing media and file deletion (not smartly though -- it re-creates the whole view and unchecks everything)
Allows the user to check off a folder and the class will return the contents of the folder, file and every sub folder in it.
It also handles the treeview checkbox bug.
-
Apr 5th, 2002, 06:21 PM
#5
Actually, it's not a class, it's a module.
And while I am at it (I feel all childish now) what are classes used for?
I can define my own classes in modules, so I fail to see their use.
-
Apr 5th, 2002, 06:24 PM
#6
Need-a-life Member
Originally posted by Lord_Rat
I didn't know you could drag and drop in the tree view . . .
If you can, then I'll look at it (and probably take another day or so)
I thought you meant the TV and LV (all together). And I was asking about dragging multiple files from one folder to another.
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Apr 5th, 2002, 06:27 PM
#7
Unfortunately, no.
You see, I fail to see how I could implement that.
As it is, this is the skeleton for a project of mine where I am going to present the contents of one's computer and let them check off folders to be copied, then choose a destination and the project will copy everything they checked off to the destination.
This is to help me recover everything I can from partially unreadable CD's.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|