]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dirdlg.tex
Underscore escaping fix from Angel Vidal Veiga
[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
JS
15
16\wxheading{Window styles}
17
141d782d 18\begin{twocollist}\itemsep=0pt
4bbc4bde
MR
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
90a6f1cc
RD
21directory" button and allow directory names to be editable. On
22Windows the new directory button is only available with recent
23versions of the common dialogs.}
141d782d 24\twocolitem{\windowstyle{wxDD\_CHANGE\_DIR}}{Change the current working directory to the directory chosen by the user.}
dabd1377
JS
25\end{twocollist}
26
27See also \helpref{Generic window styles}{windowstyles}.
954b8ae6 28
a660d684
KB
29\wxheading{See also}
30
31\helpref{wxDirDialog overview}{wxdirdialogoverview}, \helpref{wxFileDialog}{wxfiledialog}
32
33\latexignore{\rtfignore{\wxheading{Members}}}
34
6d06e061 35\membersection{wxDirDialog::wxDirDialog}\label{wxdirdialogctor}
a660d684
KB
36
37\func{}{wxDirDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message = "Choose a directory"},\rtfsp
4bbc4bde 38\param{const wxString\& }{defaultPath = ""}, \param{long }{style = wxDD\_DEFAULT\_STYLE},\rtfsp
a079e645
VZ
39\param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
40\param{const wxSize\& }{size = wxDefaultSize},\rtfsp
41\param{const wxString\& }{name = "wxDirCtrl"}}
a660d684 42
a079e645
VZ
43Constructor. Use \helpref{wxDirDialog::ShowModal}{wxdirdialogshowmodal} to show
44the dialog.
a660d684
KB
45
46\wxheading{Parameters}
47
48\docparam{parent}{Parent window.}
49
50\docparam{message}{Message to show on the dialog.}
51
52\docparam{defaultPath}{The default path, or the empty string.}
53
4bbc4bde 54\docparam{style}{The dialog style. See \helpref{wxDirDialog}{wxdirdialog}}
a660d684 55
a079e645
VZ
56\docparam{pos}{Dialog position. Ignored under Windows.}
57
58\docparam{size}{Dialog size. Ignored under Windows.}
59
60\docparam{name}{The dialog name, not used.}
a660d684 61
a203f6c0 62\membersection{wxDirDialog::\destruct{wxDirDialog}}\label{wxdirdialogdtor}
a660d684
KB
63
64\func{}{\destruct{wxDirDialog}}{\void}
65
66Destructor.
67
68\membersection{wxDirDialog::GetPath}\label{wxdirdialoggetpath}
69
70\constfunc{wxString}{GetPath}{\void}
71
72Returns the default or user-selected path.
73
74\membersection{wxDirDialog::GetMessage}\label{wxdirdialoggetmessage}
75
76\constfunc{wxString}{GetMessage}{\void}
77
78Returns the message that will be displayed on the dialog.
79
a660d684
KB
80\membersection{wxDirDialog::SetMessage}\label{wxdirdialogsetmessage}
81
82\func{void}{SetMessage}{\param{const wxString\& }{message}}
83
84Sets the message that will be displayed on the dialog.
85
86\membersection{wxDirDialog::SetPath}\label{wxdirdialogsetpath}
87
88\func{void}{SetPath}{\param{const wxString\& }{path}}
89
90Sets the default path.
91
a660d684
KB
92\membersection{wxDirDialog::ShowModal}\label{wxdirdialogshowmodal}
93
94\func{int}{ShowModal}{\void}
95
3134f933 96Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
a660d684
KB
97otherwise.
98
99