]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/stockitem.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
9 /** @ingroup group_funcmacro_misc */
13 Returns label that should be used for given @a id element.
16 Given id of the wxMenuItem, wxButton, wxToolBar tool, etc.
18 If @false then strip accelerator code from the label; useful for
19 getting labels without accelerator char code like for toolbar tooltip
20 or on platforms without traditional keyboard like smartphones.
22 Optional accelerator string automatically added to label; useful for
23 building labels for wxMenuItem.
25 @header{wx/stockitem.h}
27 wxString
wxGetStockLabel(wxWindowID id
, bool withCodes
= true,
28 const wxString
& accelerator
= wxEmptyString
);