wxDirDialog

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_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



wxDirDialog::wxDirDialog



wxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = 0, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxString& name = "wxDirCtrl")

Constructor. Use wxDirDialog::ShowModal to show the dialog.

Parameters

parent
Parent window.

message
Message to show on the dialog.

defaultPath
The default path, or the empty string.

style
A dialog style, currently unused.

pos
Dialog position. Ignored under Windows.

size
Dialog size. Ignored under Windows.

name
The dialog name, not used.



wxDirDialog::~wxDirDialog



~wxDirDialog(void)

Destructor.



wxDirDialog::GetPath

wxString GetPath(void) const

Returns the default or user-selected path.



wxDirDialog::GetMessage

wxString GetMessage(void) const

Returns the message that will be displayed on the dialog.



wxDirDialog::GetStyle

long GetStyle(void) 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(void)

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

ymasuda 平成17年11月19日