2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-03-08 14:43:31 +00:00
|
|
|
// Name: stockitem.h
|
|
|
|
// Purpose: documentation for global functions
|
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
2008-03-09 12:33:59 +00:00
|
|
|
Returns label that should be used for given @a id element.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
|
|
|
@param id
|
2008-03-09 12:33:59 +00:00
|
|
|
given id of the wxMenuItem, wxButton, wxToolBar tool, etc.
|
2008-03-08 14:43:31 +00:00
|
|
|
@param withCodes
|
2008-03-09 12:33:59 +00:00
|
|
|
if @false then strip accelerator code from the label;
|
|
|
|
useful for getting labels without accelerator char code like for toolbar
|
2008-03-08 14:43:31 +00:00
|
|
|
tooltip or
|
2008-03-09 12:33:59 +00:00
|
|
|
on platforms without traditional keyboard like smartphones
|
2008-03-08 14:43:31 +00:00
|
|
|
@param accelerator
|
2008-03-09 12:33:59 +00:00
|
|
|
optional accelerator string automatically added to label; useful
|
|
|
|
for building labels for wxMenuItem
|
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);
|
|
|
|
|
|
|
|
|