File Browser Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
peterdove
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 19, 2006 12:13 am

File Browser

Post by peterdove »

I am pretty new to wxWidgets.. does it have a file browser hidden away where I can see it - or do I need to implement it from scratch?

Peter
phlox81
wxWorld Domination!
wxWorld Domination!
Posts: 1387
Joined: Thu Aug 18, 2005 7:49 pm
Location: Germany
Contact:

Post by phlox81 »

What do you mean with "Filebrowser" ?
There is a File-Open-Dialog, and also wxDirTraverser
to enumrate Files/Dirs.
insom
Earned a small fee
Earned a small fee
Posts: 18
Joined: Mon Feb 06, 2006 5:37 pm

Post by insom »

Something like wxFileDialog?
peterdove
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 19, 2006 12:13 am

Post by peterdove »

By file bowser I mean like File Explorer in windows.. the list of directories on the left hand side of the window.

I am trying to find out if it already exists or wether I will have to use file transverser and fill in all the directory names myself.

Thanks

Peter
benedicte
wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte »

There is no "File Explorer" control.

You will probably need to create your own.
A left pane with a wxTreeCtrl, and a right pane with a wxListCtrl (so that you can choose icons/report view).
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart »

Hi Peter,

If you use the term "file browser" in the same way that I do, something to locate, display and perhaps select files/dirs, you want <a href="http://www.wxwindows.org/manuals/2.6.2/ ... ialog.html" target="_blank">wxGenericDirCtrl</a>. You could put two of these in a wxSplitterWindow, and make the left one display only directories, (BTW, if you want a directory-only version of wxFileDialog, there is <a href="http://www.wxwindows.org/manua ... Dialog</a>.)

wxGenericDirCtrl only displays things, so if you want a file manager (that will also copy/paste/archive etc) you'll have to add this yourself.

HTH,

David
emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti »

benedicte wrote:There is no "File Explorer" control.

You will probably need to create your own.
A left pane with a wxTreeCtrl, and a right pane with a wxListCtrl (so that you can choose icons/report view).
as for me ..... as quote ..... as benedicte :)
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/
peterdove
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Mar 19, 2006 12:13 am

Post by peterdove »

DavidHart wrote:Hi Peter,

If you use the term "file browser" in the same way that I do, something to locate, display and perhaps select files/dirs, you want <a href="http://www.wxwindows.org/manuals/2.6.2/ ... ialog.html" target="_blank">wxGenericDirCtrl</a>. You could put two of these in a wxSplitterWindow, and make the left one display only directories, (BTW, if you want a directory-only version of wxFileDialog, there is <a href="http://www.wxwindows.org/manua ... Dialog</a>.)

wxGenericDirCtrl only displays things, so if you want a file manager (that will also copy/paste/archive etc) you'll have to add this yourself.

HTH,

David
Thank you David, that was just the information I was looking for!

Assist accepted :)

Cheers

Peter
Post Reply