]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
wxBookCtrl --> wxBookCtrlBase
[wxWidgets.git] / src / common / utilscmn.cpp
index 5e25ae4024b39d71d7a93a90bb986fa0d88a8273..9f14c1b3cba250e23a55101c9ebbbe5b3aab431d 100644 (file)
@@ -809,11 +809,19 @@ wxString wxGetTextFromUser(const wxString& message, const wxString& caption,
 wxString wxGetPasswordFromUser(const wxString& message,
                                const wxString& caption,
                                const wxString& defaultValue,
-                               wxWindow *parent)
+                               wxWindow *parent,
+                               wxCoord x, wxCoord y, bool centre )
 {
     wxString str;
-    wxTextEntryDialog dialog(parent, message, caption, defaultValue,
-                             wxOK | wxCANCEL | wxTE_PASSWORD);
+    long style = wxTextEntryDialogStyle;
+
+    if (centre)
+        style |= wxCENTRE;
+    else
+        style &= ~wxCENTRE;
+
+    wxPasswordEntryDialog dialog(parent, message, caption, defaultValue,
+                             style, wxPoint(x, y));
     if ( dialog.ShowModal() == wxID_OK )
     {
         str = dialog.GetValue();