+ /**
+ Associate a validator with the text control used by the dialog.
+
+ These methods can be used to limit the user entry to only some
+ characters, e.g.
+ @code
+ wxTextEntryDialog dlg(this, ...);
+ dlg.SetTextValidator(wxFILTER_ALPHA);
+ if ( dlg.ShowModal() == wxID_OK )
+ {
+ // We can be certain that this string contains letters only.
+ wxString value = dlg.GetValue();
+ }
+ @endcode
+
+ The first overload uses the provided @a validator which can be of a
+ custom class derived from wxTextValidator while the second one creates
+ a wxTextValidator with the specified @a style.
+ */
+ //@{
+ void SetTextValidator(const wxTextValidator& validator);
+ void SetTextValidator(wxTextValidatorStyle style = wxFILTER_NONE);
+ //@}
+