Enhanced wxGetStockLabel() with parameters which replace platform specific #ifdefs for wxPalmOS and wxWinCE and better serve for getting consistent wxMenuItem and wxToolBar labels (with documentation).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#endif
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/wxchar.h"
|
||||
#include "wx/string.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -32,7 +33,9 @@ WXDLLEXPORT bool wxIsStockLabel(wxWindowID id, const wxString& label);
|
||||
|
||||
// Returns label that should be used for given stock UI element (e.g. "&OK"
|
||||
// for wxSTOCK_OK):
|
||||
WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id);
|
||||
WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id,
|
||||
bool withCodes = true,
|
||||
wxString accelerator = wxEmptyString);
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
// Translates stock ID to GTK+'s stock item string indentifier:
|
||||
|
Reference in New Issue
Block a user