Is this what you're looking for? See the window on the left, you can put
the dir selector above the file selector as you see or to the left. The
files can be viewed as list, icons, or just as a tree with the files.
http://www.lehigh.edu/~jrl1/wxwindows/Plotto/plotto.png
The source is wxWidgets/src/filebrws.cpp(h) in here
http://www.lehigh.edu/~jrl1/wxwindows/Plotto/plotto_101303_alpha_src.zip
You must use wxWindows CVS HEAD since the file browser part is the list
control used for the wxGenericFileDialog which has been made into a
public class (used to be hidden in src/generic/filedlgg.cpp).
Regards,
John Labenski
Thanks for reply.
I only need the tree part.
I want to have for example, the folder my computer, network folders and
desktop folder etc. displayed.
I have downloaded your application. But as I can see it uses generic
tree, which doesn't display the folders I mentioned.
Thanks for help,
Martin
>You mean wxGenericDirCtrl? (include/wx/generic/dirctrlg.h)
Oops, yes.
>To extend it, see the function (src/generic/dirctrlg.cpp)
Ok.
>Hopefully getting the file list for these fake "drives" will work the
>same as for real drives. If thats true then it should be simple. I
>suppose you'll need to check what win95 does for backwards
compatibility
>since IIRC it didn't have it.
Will , actually I am a newbie, so I don't have any idea from IIRC.
I have been programming only with gtk and wxwindows.
>Also I suggest making your changes to the
>CVS HEAD since the wxGenericDirCtrl has gone though quite a few changes
>and is quite different than in 2.4.x.
Sure, I am using cvs.
Thanks for help,
Martin
GetLogicalDriveStrings just gets the real drives.
You can go up a few levels, but I don't see anything about the location
of My Documents (a search for that turns of all kinds of crap) or
network drives.
A list of their file system functions
There's nothing there so you'll just have to dig around in msdn.
Good luck,
John Labenski