1 \section{\class{wxTextEntryDialog
}}\label{wxtextentrydialog
}
3 This class represents a dialog that requests a one-line text string from the user.
4 It is implemented as a generic wxWidgets dialog.
6 \wxheading{Derived from
}
8 \helpref{wxDialog
}{wxdialog
}\\
9 \helpref{wxTopLevelWindow
}{wxtoplevelwindow
}\\
10 \helpref{wxWindow
}{wxwindow
}\\
11 \helpref{wxEvtHandler
}{wxevthandler
}\\
12 \helpref{wxObject
}{wxobject
}
14 \wxheading{Include files
}
20 \helpref{wxTextEntryDialog overview
}{wxtextentrydialogoverview
}
22 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxTextEntryDialog::wxTextEntryDialog
}\label{wxtextentrydialogctor
}
26 \func{}{wxTextEntryDialog
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{message
},
\rtfsp
27 \param{const wxString\&
}{caption = "Please enter text"
},
\param{const wxString\&
}{defaultValue = ""
},
\param{long
}{style = wxOK
\pipe wxCANCEL
\pipe wxCENTRE
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
}}
29 Constructor. Use
\helpref{wxTextEntryDialog::ShowModal
}{wxtextentrydialogshowmodal
} to show the dialog.
31 \wxheading{Parameters
}
33 \docparam{parent
}{Parent window.
}
35 \docparam{message
}{Message to show on the dialog.
}
37 \docparam{defaultValue
}{The default value, which may be the empty string.
}
39 \docparam{style
}{A dialog style, specifying the buttons (wxOK, wxCANCEL)
40 and an optional wxCENTRE style. Additionally, wxTextCtrl styles (such as
41 \windowstyle{wxTE
\_PASSWORD}) may be specified here.
}
43 \docparam{pos
}{Dialog position.
}
45 \membersection{wxTextEntryDialog::
\destruct{wxTextEntryDialog
}}\label{wxtextentrydialogdtor
}
47 \func{}{\destruct{wxTextEntryDialog
}}{\void}
51 \membersection{wxTextEntryDialog::GetValue
}\label{wxtextentrydialoggetvalue
}
53 \constfunc{wxString
}{GetValue
}{\void}
55 Returns the text that the user has entered if the user has pressed OK, or the original value
56 if the user has pressed Cancel.
58 \membersection{wxTextEntryDialog::SetValue
}\label{wxtextentrydialogsetvalue
}
60 \func{void
}{SetValue
}{\param{const wxString\&
}{value
}}
62 Sets the default text value.
64 \membersection{wxTextEntryDialog::ShowModal
}\label{wxtextentrydialogshowmodal
}
66 \func{int
}{ShowModal
}{\void}
68 Shows the dialog, returning wxID
\_OK if the user pressed OK, and wxID
\_CANCEL