]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dirdlg.tex
Added EVT_MOVE_START, EVT_MOVE_END (wxMSW only for now)
[wxWidgets.git] / docs / latex / wx / dirdlg.tex
CommitLineData
a660d684
KB
1\section{\class{wxDirDialog}}\label{wxdirdialog}
2
3This class represents the directory chooser dialog.
4
5\wxheading{Derived from}
6
7\helpref{wxDialog}{wxdialog}\\
8\helpref{wxWindow}{wxwindow}\\
9\helpref{wxEvtHandler}{wxevthandler}\\
10\helpref{wxObject}{wxobject}
11
954b8ae6
JS
12\wxheading{Include files}
13
14<wx/dirdlg.h>
dabd1377 15
a7af285d
VZ
16\wxheading{Library}
17
18\helpref{wxCore}{librarieslist}
19
dabd1377
JS
20\wxheading{Window styles}
21
141d782d 22\begin{twocollist}\itemsep=0pt
ff3e84ff 23\twocolitem{\windowstyle{wxDD\_DEFAULT\_STYLE}}{Equivalent to a combination of wxDEFAULT\_DIALOG\_STYLE and wxRESIZE\_BORDER (the last one is not used under wxWinCE).}
6bd719f1 24\twocolitem{\windowstyle{wxDD\_DIR\_MUST\_EXIST}}{The dialog will allow the user to choose only an existing folder. When this style is not given, a "Create new directory" button is added to the dialog (on Windows) or some other way is provided to the user to type the name of a new folder.}
141d782d 25\twocolitem{\windowstyle{wxDD\_CHANGE\_DIR}}{Change the current working directory to the directory chosen by the user.}
dabd1377
JS
26\end{twocollist}
27
ff3e84ff
VZ
28{\bf NB:} on Windows the new directory button is only available with recent versions of the common dialogs.
29
dabd1377 30See also \helpref{Generic window styles}{windowstyles}.
954b8ae6 31
a660d684
KB
32\wxheading{See also}
33
34\helpref{wxDirDialog overview}{wxdirdialogoverview}, \helpref{wxFileDialog}{wxfiledialog}
35
36\latexignore{\rtfignore{\wxheading{Members}}}
37
6d06e061 38\membersection{wxDirDialog::wxDirDialog}\label{wxdirdialogctor}
a660d684
KB
39
40\func{}{wxDirDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message = "Choose a directory"},\rtfsp
4bbc4bde 41\param{const wxString\& }{defaultPath = ""}, \param{long }{style = wxDD\_DEFAULT\_STYLE},\rtfsp
a079e645
VZ
42\param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
43\param{const wxSize\& }{size = wxDefaultSize},\rtfsp
44\param{const wxString\& }{name = "wxDirCtrl"}}
a660d684 45
a079e645
VZ
46Constructor. Use \helpref{wxDirDialog::ShowModal}{wxdirdialogshowmodal} to show
47the dialog.
a660d684
KB
48
49\wxheading{Parameters}
50
51\docparam{parent}{Parent window.}
52
53\docparam{message}{Message to show on the dialog.}
54
55\docparam{defaultPath}{The default path, or the empty string.}
56
4bbc4bde 57\docparam{style}{The dialog style. See \helpref{wxDirDialog}{wxdirdialog}}
a660d684 58
a079e645
VZ
59\docparam{pos}{Dialog position. Ignored under Windows.}
60
61\docparam{size}{Dialog size. Ignored under Windows.}
62
63\docparam{name}{The dialog name, not used.}
a660d684 64
a203f6c0 65\membersection{wxDirDialog::\destruct{wxDirDialog}}\label{wxdirdialogdtor}
a660d684
KB
66
67\func{}{\destruct{wxDirDialog}}{\void}
68
69Destructor.
70
71\membersection{wxDirDialog::GetPath}\label{wxdirdialoggetpath}
72
73\constfunc{wxString}{GetPath}{\void}
74
75Returns the default or user-selected path.
76
77\membersection{wxDirDialog::GetMessage}\label{wxdirdialoggetmessage}
78
79\constfunc{wxString}{GetMessage}{\void}
80
81Returns the message that will be displayed on the dialog.
82
a660d684
KB
83\membersection{wxDirDialog::SetMessage}\label{wxdirdialogsetmessage}
84
85\func{void}{SetMessage}{\param{const wxString\& }{message}}
86
87Sets the message that will be displayed on the dialog.
88
89\membersection{wxDirDialog::SetPath}\label{wxdirdialogsetpath}
90
91\func{void}{SetPath}{\param{const wxString\& }{path}}
92
93Sets the default path.
94
a660d684
KB
95\membersection{wxDirDialog::ShowModal}\label{wxdirdialogshowmodal}
96
97\func{int}{ShowModal}{\void}
98
3134f933 99Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
a660d684
KB
100otherwise.
101
102