[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
This commit is contained in:
@@ -181,4 +181,22 @@ void wxTextEntryDialog::SetTextValidator( wxTextValidator& validator )
|
|||||||
#endif
|
#endif
|
||||||
// wxUSE_VALIDATORS
|
// 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
|
#endif // wxUSE_TEXTDLG
|
||||||
|
Reference in New Issue
Block a user