X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..a4f6fe43c33bd7933645d110ad2719871dab043d:/include/wx/stockitem.h diff --git a/include/wx/stockitem.h b/include/wx/stockitem.h index 19cdc59321..eff9eb2dc7 100644 --- a/include/wx/stockitem.h +++ b/include/wx/stockitem.h @@ -33,7 +33,15 @@ enum wxStockLabelQueryFlag wxSTOCK_NOFLAGS = 0, wxSTOCK_WITH_MNEMONIC = 1, - wxSTOCK_WITH_ACCELERATOR = 2 + wxSTOCK_WITH_ACCELERATOR = 2, + + // by default, stock items text is returned with ellipsis, if appropriate, + // this flag allows to avoid having it + wxSTOCK_WITHOUT_ELLIPSIS = 4, + + // return label for button, not menu item: buttons should always use + // mnemonics and never use ellipsis + wxSTOCK_FOR_BUTTON = wxSTOCK_WITHOUT_ELLIPSIS | wxSTOCK_WITH_MNEMONIC }; // Returns label that should be used for given stock UI element (e.g. "&OK" @@ -65,7 +73,7 @@ WXDLLIMPEXP_CORE wxString wxGetStockHelpString(wxWindowID id, #ifdef __WXGTK20__ -// Translates stock ID to GTK+'s stock item string indentifier: +// Translates stock ID to GTK+'s stock item string identifier: WXDLLIMPEXP_CORE const char *wxGetStockGtkID(wxWindowID id); #endif