+
+#if wxUSE_VALIDATORS
+void wxTextEntryDialog::SetTextValidator( long style )
+{
+ wxTextValidator validator( style, &m_value );
+ m_textctrl->SetValidator( validator );
+}
+
+void wxTextEntryDialog::SetTextValidator( const wxTextValidator& validator )
+{
+ m_textctrl->SetValidator( validator );
+}
+
+#endif
+ // wxUSE_VALIDATORS
+
+// ----------------------------------------------------------------------------
+// wxPasswordEntryDialog
+// ----------------------------------------------------------------------------
+
+IMPLEMENT_CLASS(wxPasswordEntryDialog, wxTextEntryDialog)
+
+wxPasswordEntryDialog::wxPasswordEntryDialog(wxWindow *parent,
+ const wxString& message,
+ const wxString& caption,
+ const wxString& value,
+ long style,
+ const wxPoint& pos)
+ : wxTextEntryDialog(parent, message, caption, value,
+ style | wxTE_PASSWORD, pos)
+{
+ // Only change from wxTextEntryDialog is the password style
+}
+
+#endif // wxUSE_TEXTDLG