2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-03-08 14:43:31 +00:00
|
|
|
// Name: stockitem.h
|
2008-03-10 15:24:38 +00:00
|
|
|
// Purpose: interface of global functions
|
2008-03-08 14:43:31 +00:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-03-23 18:24:32 +00:00
|
|
|
/** @ingroup group_funcmacro_misc */
|
|
|
|
//@{
|
|
|
|
|
2008-03-08 14:43:31 +00:00
|
|
|
/**
|
2008-03-23 18:24:32 +00:00
|
|
|
Returns label that should be used for given @a id element.
|
|
|
|
|
|
|
|
@param id
|
|
|
|
Given id of the wxMenuItem, wxButton, wxToolBar tool, etc.
|
|
|
|
@param withCodes
|
|
|
|
If @false then strip accelerator code from the label; useful for
|
|
|
|
getting labels without accelerator char code like for toolbar tooltip
|
|
|
|
or on platforms without traditional keyboard like smartphones.
|
|
|
|
@param accelerator
|
|
|
|
Optional accelerator string automatically added to label; useful for
|
|
|
|
building labels for wxMenuItem.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-23 18:24:32 +00:00
|
|
|
@header{wx/stockitem.h}
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
wxString wxGetStockLabel(wxWindowID id, bool withCodes = true,
|
2008-03-08 13:52:38 +00:00
|
|
|
const wxString& accelerator = wxEmptyString);
|
|
|
|
|
2008-03-23 18:24:32 +00:00
|
|
|
//@}
|
2008-03-08 13:52:38 +00:00
|
|
|
|