wxFileDialog

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
asadilan
Earned some good credits
Earned some good credits
Posts: 147
Joined: Tue Jul 27, 2010 10:42 pm

wxFileDialog

Post by asadilan »

Hi All,

is there a way to restrict folder browsing in wxFiledialog?
i want user only be able to select a file in 1 directory only.

TIA
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxFileDialog

Post by PB »

I believe this not possible to do using wxWidgets' wxFileDialog.
JimFairway
wxWorld Domination!
wxWorld Domination!
Posts: 1059
Joined: Sun Dec 30, 2007 6:40 pm
Location: Canada

Re: wxFileDialog

Post by JimFairway »

Hi,

Have a look at the Dialogs example in your /wx/samples folder.
Check out the generic dialog file, I suppose you could modify the source code to fit your purposes (i.e. take out the navigation controls that allows the user to get to a different folder.

Hope that helps,

Jim
OS: Vista SP1, wxWidgets 2.8.7.
Post Reply