@see Create(), wxValidator
*/
wxComboBox(wxWindow* parent, wxWindowID id,
- const wxString& value = "",
+ const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n = 0,
@header{wx/dirdlg.h}
*/
wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
- const wxString& default_path = "",
+ const wxString& default_path = wxEmptyString,
long style = 0,
const wxPoint& pos = wxDefaultPosition,
wxWindow* parent = NULL);
It pops up a file selector box (native for Windows and GTK2.4+).
The path and filename are distinct elements of a full file pathname.
- If path is "", the current directory will be used. If filename is "", no default
- filename will be supplied. The wildcard determines what files are displayed in the
- file selector, and file extension supplies a type extension for the required filename.
+ If path is wxEmptyString, the current directory will be used.
+ If filename is wxEmptyString, no default filename will be supplied.
+ The wildcard determines what files are displayed in the file selector,
+ and file extension supplies a type extension for the required filename.
@remarks
All implementations of the wxFileDialog provide a wildcard filter. Typing a filename
@header{wx/filedlg.h}
*/
wxString wxFileSelector(const wxString& message,
- const wxString& default_path = "",
- const wxString& default_filename = "",
- const wxString& default_extension = "",
+ const wxString& default_path = wxEmptyString,
+ const wxString& default_filename = wxEmptyString,
+ const wxString& default_extension = wxEmptyString,
const wxString& wildcard = ".",
int flags = 0,
wxWindow* parent = NULL,
wxFont(int pointSize, wxFontFamily family, int style,
wxFontWeight weight,
bool underline = false,
- const wxString& faceName = "",
+ const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
/**
wxFont(const wxSize& pixelSize, wxFontFamily family,
int style, wxFontWeight weight,
bool underline = false,
- const wxString& faceName = "",
+ const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
//@}
static wxFont* New(int pointSize, wxFontFamily family, int style,
wxFontWeight weight,
bool underline = false,
- const wxString& faceName = "",
+ const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(int pointSize, wxFontFamily family,
int flags = wxFONTFLAG_DEFAULT,
- const wxString& faceName = "",
+ const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(const wxSize& pixelSize,
wxFontFamily family,
int style,
wxFontWeight weight,
bool underline = false,
- const wxString& faceName = "",
+ const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(const wxSize& pixelSize,
wxFontFamily family,
int flags = wxFONTFLAG_DEFAULT,
- const wxString& faceName = "",
+ const wxString& faceName = wxEmptyString,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
//@}
Return array of strings containing all encodings found by
EnumerateEncodings().
*/
- static wxArrayString GetEncodings(const wxString& facename = "");
+ static wxArrayString GetEncodings(const wxString& facename = wxEmptyString);
/**
Return array of strings containing all facenames found by
Constructor.
If no filename is passed, the metafile is created in memory.
*/
- wxMetafileDC(const wxString& filename = "");
+ wxMetafileDC(const wxString& filename = wxEmptyString);
/**
Destructor.
If a filename is given, the Windows disk metafile is read in.
Check whether this was performed successfully by using the IsOk() member.
*/
- wxMetafile(const wxString& filename = "");
+ wxMetafile(const wxString& filename = wxEmptyString);
/**
Destructor.
@see Create(), wxValidator
*/
wxOwnerDrawnComboBox(wxWindow* parent, wxWindowID id,
- const wxString& value = "",
+ const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n = 0,
@remarks Derived classes should call or replace this function.
*/
bool Create(wxWindow* parent, wxWindowID id,
- const wxString& value = "",
+ const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n, const wxString choices[],
*/
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,
@header{wx/utils.h}
*/
-wxString wxGetUserHome(const wxString& user = "");
+wxString wxGetUserHome(const wxString& user = wxEmptyString);
/**
This function returns the "user id" also known as "login name" under Unix