I need mad help!!
I am creating a program that is like netcaptor except without all them adds and the crap they added. Well Ive hit a slight bottleneck.
Im having trouble listing the favorites folders. I can list the folders and files fine accordingly. But its when I get a folder in a folder and file in that folder my code cant work and it wont ever work that way. So I had to trash my entire favorites code. Now I need a new way to list the favorites. Heres how my menu coding goes. Im not using the vb default menu editor but im using an api method that allows me to be more powerful in what I do with the menu's. Below is an explanation and an example:
'Favorites Menu
iP(0) = .AddItem("&Favorites", , , , , , , "Favorites")
iP(1) = .AddItem("&Add To Favorites", , , iP(0), , , , "AddFavorites")
iP(1) = .AddItem("&Organize Favorites", , , iP(0), , , , "OrganizeFavorites")
iP(1) = .AddItem("-", , , iP(0), , , , "line1")
Ok. Heres how this works the iP(0)and ip(1) and so on in the front of the lines are the branch owners. So like &Favorites is going to be on the main toolbar where its visible and &Add To Favorites is going to under &Favorites.
The ip(0) in the middle of all the commas is telling it who the owner branch is. Which is &Favorites cause its the first branch there.
For example if you had "&File" and then "&New" and then under "&New" you had "&Document".
the code would look like this:
iP(0) = .AddItem("&File", , , , , , , "File")
iP(1) = .AddItem("&New", , , iP(0), , , , "New")
iP(2) = .AddItem("&Document", , ,iP(1), , , , "OrganizeFavorites")
Notice the *2* and the *1* thats how it works.. Pretty simple..
Ok well now that we got passed that. I need some help on some code that could be incorporated into this menu method that would list all the favorites folders and etc. even if they were branched together.. Just how IE does it. Not to hard it wouldnt seem would it? Well trust me its not easy!!
If you could help me I would greatly appreciate it! Thanks!
[Edited by magadass on 06-17-2000 at 10:00 PM]
