PDA

View Full Version : Delphi help.


GZZ
20th June 2002, 00:07
I got a ShellTreeView in my delphi program. But how do I add a new folder to it?

I have try something with Addobject, but I can't get it working.

PS: a ShellTreeView is the same as in Explore, where you can see the HD and CDrom drives.


I hope some delphi people in here can help me on this. Thanks.

GZZ

ciler
20th June 2002, 10:28
Hello,

Here is something you can use :


ShellTreeView1.Items.AddChild(ShellTreeView1.Items.Item[a],'FolderName');


Obviously, you change a to which integer suits to your use. But this only add the Folder to the TreeView, not actually creating the folder.

Maybe the best thing you can do would be to actually create the folder using another component and refresh the shellView