git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30309
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxGetPasswordFromUser(const wxString& message,
const wxString& caption = wxGetTextFromUserPromptStr,
const wxString& default_value = wxEmptyString,
wxGetPasswordFromUser(const wxString& message,
const wxString& caption = wxGetTextFromUserPromptStr,
const wxString& default_value = wxEmptyString,
- wxWindow *parent = (wxWindow *) NULL);
+ wxWindow *parent = (wxWindow *) NULL,
+ wxCoord x = wxDefaultCoord,
+ wxCoord y = wxDefaultCoord,
+ bool centre = true);
wxString wxGetPasswordFromUser(const wxString& message,
const wxString& caption,
const wxString& defaultValue,
wxString wxGetPasswordFromUser(const wxString& message,
const wxString& caption,
const wxString& defaultValue,
+ wxWindow *parent,
+ wxCoord x, wxCoord y, bool centre )
+ long style = wxTextEntryDialogStyle;
+
+ if (centre)
+ style |= wxCENTRE;
+ else
+ style &= ~wxCENTRE;
+
wxTextEntryDialog dialog(parent, message, caption, defaultValue,
wxTextEntryDialog dialog(parent, message, caption, defaultValue,
- wxOK | wxCANCEL | wxTE_PASSWORD);
+ style | wxTE_PASSWORD, wxPoint(x, y));
if ( dialog.ShowModal() == wxID_OK )
{
str = dialog.GetValue();
if ( dialog.ShowModal() == wxID_OK )
{
str = dialog.GetValue();