]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/textdlgg.cpp
added wxDP_ALLOWNONE (patch 1153889)
[wxWidgets.git] / src / generic / textdlgg.cpp
index 276e745fb6c0ded66ff942338f040788577c579c..70d8a220ff9c6d784d883214310e33eafd21bfd2 100644 (file)
@@ -125,7 +125,7 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent,
 #endif
 
     // 4) buttons
-    topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
+    topsizer->Add( CreateButtonSizer( style ), 0, wxEXPAND | wxALL, 10 );
 
 #endif // !__SMARTPHONE__
 
@@ -135,7 +135,7 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent,
     topsizer->SetSizeHints( this );
     topsizer->Fit( this );
 
-    if ( ( style & wxCENTRE ) == wxCENTRE )
+    if ( style & wxCENTRE )
         Centre( wxBOTH );
 
     m_textctrl->SetSelection(-1, -1);
@@ -181,4 +181,22 @@ void wxTextEntryDialog::SetTextValidator( wxTextValidator& 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