It is implemented as a generic wxWidgets dialog.
- @library{wxbase}
+ @library{wxcore}
@category{cmndlg}
@see @ref overview_cmndlg_password
Parent window.
@param message
Message to show on the dialog.
+ @param caption
+ The caption of the dialog.
@param defaultValue
The default value, which may be the empty string.
@param style
Dialog position.
*/
wxPasswordEntryDialog(wxWindow* parent, const wxString& message,
- const wxString& caption = "Enter password",
+ const wxString& caption = wxGetPasswordFromUserPromptStr,
const wxString& defaultValue = wxEmptyString,
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxDefaultPosition);
This class represents a dialog that requests a one-line text string from the user.
It is implemented as a generic wxWidgets dialog.
- @library{wxbase}
+ @library{wxcore}
@category{cmndlg}
@see @ref overview_cmndlg_textentry
Message to show on the dialog.
@param caption
The caption of the the dialog.
- @param defaultValue
+ @param value
The default value, which may be the empty string.
@param style
A dialog style, specifying the buttons (wxOK, wxCANCEL)
Dialog position.
*/
wxTextEntryDialog(wxWindow* parent, const wxString& message,
- const wxString& caption = "Please enter text",
- const wxString& defaultValue = "",
+ const wxString& caption = wxGetTextFromUserPromptStr,
+ const wxString& value = wxEmptyString,
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxDefaultPosition);
// Global functions/macros
// ============================================================================
-/** @ingroup group_funcmacro_dialog */
+/** @addtogroup group_funcmacro_dialog */
//@{
/**
*/
wxString wxGetTextFromUser(const wxString& message,
const wxString& caption = "Input text",
- const wxString& default_value = "",
+ const wxString& default_value = wxEmptyString,
wxWindow* parent = NULL,
int x = wxDefaultCoord,
int y = wxDefaultCoord,
*/
wxString wxGetPasswordFromUser(const wxString& message,
const wxString& caption = "Input text",
- const wxString& default_value = "",
+ const wxString& default_value = wxEmptyString,
wxWindow* parent = NULL,
int x = wxDefaultCoord,
int y = wxDefaultCoord,