]> git.saurik.com Git - wxWidgets.git/commitdiff
[1001483] Added wxPasswordEntryDialog analagous to wxTextEntryDialog, allows detectin...
authorKevin Hock <hockkn@yahoo.com>
Tue, 9 Nov 2004 19:01:47 +0000 (19:01 +0000)
committerKevin Hock <hockkn@yahoo.com>
Tue, 9 Nov 2004 19:01:47 +0000 (19:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/textdlgg.cpp

index fa240b4f500168d5ea274857a4373b32051ba03d..b89b9d5de3c1e61b2cd2819f4f351edcc4e17c26 100644 (file)
@@ -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