1 \section{\class{wxDirDialog
}}\label{wxdirdialog
}
3 This class represents the directory chooser dialog.
5 \wxheading{Derived from
}
7 \helpref{wxDialog
}{wxdialog
}\\
8 \helpref{wxWindow
}{wxwindow
}\\
9 \helpref{wxEvtHandler
}{wxevthandler
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
16 \wxheading{Window styles
}
18 \begin{twocollist
}\itemsep=
0pt
19 \twocolitem{\windowstyle{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).
}
20 \twocolitem{\windowstyle{wxDD
\_NEW\_DIR\_BUTTON}}{Add "Create new
21 directory" button and allow directory names to be editable. On
22 Windows the new directory button is only available with recent
23 versions of the common dialogs.
}
24 \twocolitem{\windowstyle{wxDD
\_CHANGE\_DIR}}{Change the current working directory to the directory chosen by the user.
}
27 See also
\helpref{Generic window styles
}{windowstyles
}.
31 \helpref{wxDirDialog overview
}{wxdirdialogoverview
},
\helpref{wxFileDialog
}{wxfiledialog
}
33 \latexignore{\rtfignore{\wxheading{Members
}}}
35 \membersection{wxDirDialog::wxDirDialog
}\label{wxdirdialogctor
}
37 \func{}{wxDirDialog
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{message = "Choose a directory"
},
\rtfsp
38 \param{const wxString\&
}{defaultPath = ""
},
\param{long
}{style = wxDD
\_DEFAULT\_STYLE},
\rtfsp
39 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\rtfsp
40 \param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
41 \param{const wxString\&
}{name = "wxDirCtrl"
}}
43 Constructor. Use
\helpref{wxDirDialog::ShowModal
}{wxdirdialogshowmodal
} to show
46 \wxheading{Parameters
}
48 \docparam{parent
}{Parent window.
}
50 \docparam{message
}{Message to show on the dialog.
}
52 \docparam{defaultPath
}{The default path, or the empty string.
}
54 \docparam{style
}{The dialog style. See
\helpref{wxDirDialog
}{wxdirdialog
}}
56 \docparam{pos
}{Dialog position. Ignored under Windows.
}
58 \docparam{size
}{Dialog size. Ignored under Windows.
}
60 \docparam{name
}{The dialog name, not used.
}
62 \membersection{wxDirDialog::
\destruct{wxDirDialog
}}\label{wxdirdialogdtor
}
64 \func{}{\destruct{wxDirDialog
}}{\void}
68 \membersection{wxDirDialog::GetPath
}\label{wxdirdialoggetpath
}
70 \constfunc{wxString
}{GetPath
}{\void}
72 Returns the default or user-selected path.
74 \membersection{wxDirDialog::GetMessage
}\label{wxdirdialoggetmessage
}
76 \constfunc{wxString
}{GetMessage
}{\void}
78 Returns the message that will be displayed on the dialog.
80 \membersection{wxDirDialog::SetMessage
}\label{wxdirdialogsetmessage
}
82 \func{void
}{SetMessage
}{\param{const wxString\&
}{message
}}
84 Sets the message that will be displayed on the dialog.
86 \membersection{wxDirDialog::SetPath
}\label{wxdirdialogsetpath
}
88 \func{void
}{SetPath
}{\param{const wxString\&
}{path
}}
90 Sets the default path.
92 \membersection{wxDirDialog::ShowModal
}\label{wxdirdialogshowmodal
}
94 \func{int
}{ShowModal
}{\void}
96 Shows the dialog, returning wxID
\_OK if the user pressed OK, and wxID
\_CANCEL