Contents Up Previous Next

wxDirDialog

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::wxDirDialog

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::~wxDirDialog

~wxDirDialog()

Destructor.


wxDirDialog::GetPath

wxString GetPath() const

Returns the default or user-selected path.


wxDirDialog::GetMessage

wxString GetMessage() const

Returns the message that will be displayed on the dialog.


wxDirDialog::GetStyle

long GetStyle() const

Returns the dialog style.


wxDirDialog::SetMessage

void SetMessage(const wxString& message)

Sets the message that will be displayed on the dialog.


wxDirDialog::SetPath

void SetPath(const wxString& path)

Sets the default path.


wxDirDialog::SetStyle

void SetStyle(long style)

Sets the dialog style. This is currently unused.


wxDirDialog::ShowModal

int ShowModal()

Shows the dialog, returning wxID_OK if the user pressed OK, and wxOK_CANCEL otherwise.