]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/textdlg.tex
fixes
[wxWidgets.git] / docs / latex / wx / textdlg.tex
CommitLineData
a660d684
KB
1\section{\class{wxTextEntryDialog}}\label{wxtextentrydialog}
2
3This class represents a dialog that requests a one-line text string from the user.
4It is implemented as a generic wxWindows dialog.
5
6\wxheading{Derived from}
7
8\helpref{wxDialog}{wxdialog}\\
9\helpref{wxWindow}{wxwindow}\\
10\helpref{wxEvtHandler}{wxevthandler}\\
11\helpref{wxObject}{wxobject}
12
13\wxheading{See also}
14
15\helpref{wxTextEntryDialog overview}{wxtextentrydialogoverview}
16
17\latexignore{\rtfignore{\wxheading{Members}}}
18
19\membersection{wxTextEntryDialog::wxTextEntryDialog}\label{wxtextentrydialogconstr}
20
21\func{}{wxTextEntryDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message = "Please enter text"},\rtfsp
22\param{const wxString\& }{defaultValue = ""}, \param{long }{style = wxOK \pipe wxCANCEL \pipe wxCENTRE}, \param{const wxPoint\& }{pos = wxDefaultPosition}}
23
24Constructor. Use \helpref{wxTextEntryDialog::ShowModal}{wxtextentrydialogshowmodal} to show the dialog.
25
26\wxheading{Parameters}
27
28\docparam{parent}{Parent window.}
29
30\docparam{message}{Message to show on the dialog.}
31
32\docparam{defaultValue}{The default value, which may be the empty string.}
33
34\docparam{style}{A dialog style, specifying the buttons (wxOK, wxCANCEL) and an optional wxCENTRE style.}
35
36\docparam{pos}{Dialog position.}
37
38\membersection{wxTextEntryDialog::\destruct{wxTextEntryDialog}}
39
40\func{}{\destruct{wxTextEntryDialog}}{\void}
41
42Destructor.
43
44\membersection{wxTextEntryDialog::GetValue}\label{wxtextentrydialoggetvalue}
45
46\constfunc{wxString}{GetValue}{\void}
47
48Returns the text that the user has entered if the user has pressed OK, or the original value
49if the user has pressed Cancel.
50
51\membersection{wxTextEntryDialog::SetValue}\label{wxtextentrydialogsetvalue}
52
53\func{void}{SetValue}{\param{const wxString\& }{value}}
54
55Sets the default text value.
56
57\membersection{wxTextEntryDialog::ShowModal}\label{wxtextentrydialogshowmodal}
58
59\func{int}{ShowModal}{\void}
60
61Shows the dialog, returning wxID\_OK if the user pressed OK, and wxOK\_CANCEL
62otherwise.
63
64