+ return wxDialog::TransferDataFromWindow();
+}
+
+void wxTextEntryDialog::OnOK(wxCommandEvent& WXUNUSED(event) )
+{
+ if ( Validate() && TransferDataFromWindow() )
+ {
+ EndModal( wxID_OK );
+ }
+}
+
+void wxTextEntryDialog::SetMaxLength(unsigned long len)
+{
+ m_textctrl->SetMaxLength(len);
+}
+
+void wxTextEntryDialog::SetValue(const wxString& val)
+{
+ m_value = val;
+
+ m_textctrl->SetValue(val);
+}
+
+#if wxUSE_VALIDATORS
+
+#if WXWIN_COMPATIBILITY_2_8
+void wxTextEntryDialog::SetTextValidator( long style )
+{
+ SetTextValidator((wxTextValidatorStyle)style);
+}
+#endif
+
+void wxTextEntryDialog::SetTextValidator( wxTextValidatorStyle style )
+{
+ SetTextValidator(wxTextValidator(style));
+}
+
+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