From e9f4948e73cc32814aa96546c4d975afd252cda9 Mon Sep 17 00:00:00 2001 From: Kevin Hock Date: Tue, 9 Nov 2004 19:01:47 +0000 Subject: [PATCH] [1001483] Added wxPasswordEntryDialog analagous to wxTextEntryDialog, allows detecting entering an empty string vs. cancel unlike the wxGetPasswordFromUser dialog function. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/textdlgg.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/generic/textdlgg.cpp b/src/generic/textdlgg.cpp index fa240b4f50..b89b9d5de3 100644 --- a/src/generic/textdlgg.cpp +++ b/src/generic/textdlgg.cpp @@ -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 -- 2.47.2