This class represents the directory chooser dialog.
Derived from
wxDialog
wxWindow
wxEvtHandler
wxObject
Include files
<wx/dirdlg.h>
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 = 0, const wxPoint& pos = wxDefaultPosition)
Constructor. Use wxDirDialog::ShowModal to show the dialog.
Parameters
parent
message
defaultPath
style
pos
~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 wxOK_CANCEL otherwise.