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
}
15 <wx/generic/dirdlgg.h>
17 \wxheading{Window styles
}
21 \twocolitem{\indexit{wxDD
\_NEW\_DIR\_BUTTON}}{Add "Create new directory" button and allow
22 directory names to be editable. Available only on platforms that use the generic
23 dialog chooser: GTK+, Motif, X11, MGL. For other platforms, use the wxGenericDirDialog
24 implementation explicitly if you wish to use this style.
}
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{wxdirdialogconstr
}
37 \func{}{wxDirDialog
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{message = "Choose a directory"
},
\rtfsp
38 \param{const wxString\&
}{defaultPath = ""
},
\param{long
}{style =
0},
\param{const wxPoint\&
}{pos = wxDefaultPosition
}}
40 Constructor. Use
\helpref{wxDirDialog::ShowModal
}{wxdirdialogshowmodal
} to show the dialog.
42 \wxheading{Parameters
}
44 \docparam{parent
}{Parent window.
}
46 \docparam{message
}{Message to show on the dialog.
}
48 \docparam{defaultPath
}{The default path, or the empty string.
}
50 \docparam{style
}{A dialog style, currently unused.
}
52 \docparam{pos
}{Dialog position. Not implemented.
}
54 \membersection{wxDirDialog::
\destruct{wxDirDialog
}}
56 \func{}{\destruct{wxDirDialog
}}{\void}
60 \membersection{wxDirDialog::GetPath
}\label{wxdirdialoggetpath
}
62 \constfunc{wxString
}{GetPath
}{\void}
64 Returns the default or user-selected path.
66 \membersection{wxDirDialog::GetMessage
}\label{wxdirdialoggetmessage
}
68 \constfunc{wxString
}{GetMessage
}{\void}
70 Returns the message that will be displayed on the dialog.
72 \membersection{wxDirDialog::GetStyle
}\label{wxdirdialoggetstyle
}
74 \constfunc{long
}{GetStyle
}{\void}
76 Returns the dialog style.
78 \membersection{wxDirDialog::SetMessage
}\label{wxdirdialogsetmessage
}
80 \func{void
}{SetMessage
}{\param{const wxString\&
}{message
}}
82 Sets the message that will be displayed on the dialog.
84 \membersection{wxDirDialog::SetPath
}\label{wxdirdialogsetpath
}
86 \func{void
}{SetPath
}{\param{const wxString\&
}{path
}}
88 Sets the default path.
90 \membersection{wxDirDialog::SetStyle
}\label{wxdirdialogsetstyle
}
92 \func{void
}{SetStyle
}{\param{long
}{style
}}
94 Sets the dialog style. This is currently unused.
96 \membersection{wxDirDialog::ShowModal
}\label{wxdirdialogshowmodal
}
98 \func{int
}{ShowModal
}{\void}
100 Shows the dialog, returning wxID
\_OK if the user pressed OK, and wxOK
\_CANCEL