1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 Possible values for flags parameter of wxGetStockLabel().
12 The elements of this enum are bit masks and may be combined with each other
13 (except when specified otherwise).
15 enum wxStockLabelQueryFlag
18 Indicates absence of wxSTOCK_WITH_MNEMONIC and wxSTOCK_WITH_ACCELERATOR.
20 Requests just the label (e.g. "Print...").
25 Request the label with mnemonics character.
29 wxSTOCK_WITH_MNEMONIC
= 1,
32 Return the label with accelerator following it after TAB.
34 E.g. "Print...\tCtrl-P". This can be combined with
35 wxSTOCK_WITH_MNEMONIC to get "&Print...\tCtrl-P".
37 wxSTOCK_WITH_ACCELERATOR
= 2
40 /** @addtogroup group_funcmacro_misc */
44 Returns label that should be used for given @a id element.
47 Given id of the wxMenuItem, wxButton, wxToolBar tool, etc.
49 Combination of the elements of wxStockLabelQueryFlag.
51 @header{wx/stockitem.h}
53 wxString
wxGetStockLabel(wxWindowID id
, long flags
= wxSTOCK_WITH_MNEMONIC
);