This class represents the directory chooser dialog.
Derived from
wxDialog
wxWindow
wxEvtHandler
wxObject
Include files
<wx/dirdlg.h> <wx/generic/dirdlgg.h>
Window styles
wxDD_DEFAULT_STYLE | Equivalent to a combination of wxDEFAULT_DIALOG_STYLE, wxDD_NEW_DIR_BUTTON and wxRESIZE_BORDER (the last one is not used under wxWinCE). |
wxDD_NEW_DIR_BUTTON | Add "Create new directory" button and allow directory names to be editable. On Windows the new directory button is only available with recent versions of the common dialogs. |
See also Generic window styles.
See also
wxDirDialog overview, wxFileDialog
Members
wxDirDialog::wxDirDialog
wxDirDialog::~wxDirDialog
wxDirDialog::GetPath
wxDirDialog::GetMessage
wxDirDialog::GetStyle
wxDirDialog::SetMessage
wxDirDialog::SetPath
wxDirDialog::SetStyle
wxDirDialog::ShowModal
wxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = wxDD_DEFAULT_STYLE, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxString& name = "wxDirCtrl")
Constructor. Use wxDirDialog::ShowModal to show the dialog.
Parameters
parent
message
defaultPath
style
pos
size
name
~wxDirDialog()
Destructor.
wxString GetPath() const
Returns the default or user-selected path.
wxString GetMessage() const
Returns the message that will be displayed on the dialog.
long GetStyle() const
Returns the dialog style.
void SetMessage(const wxString& message)
Sets the message that will be displayed on the dialog.
void SetPath(const wxString& path)
Sets the default path.
void SetStyle(long style)
Sets the dialog style. This is currently unused.
int ShowModal()
Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL otherwise.