X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e94ee7915bdb56e4a964331cbbd3ff2441e8edef..adf8418e3caafe5ece776cb08b33faa7c32264ba:/interface/wx/stockitem.h diff --git a/interface/wx/stockitem.h b/interface/wx/stockitem.h index 83baf0f802..d08b17c7d5 100644 --- a/interface/wx/stockitem.h +++ b/interface/wx/stockitem.h @@ -23,8 +23,8 @@ enum wxStockLabelQueryFlag /** Request the label with mnemonics character. - - E.g. "&Print...". + + E.g. "&Print...". */ wxSTOCK_WITH_MNEMONIC = 1, @@ -36,6 +36,20 @@ enum wxStockLabelQueryFlag */ wxSTOCK_WITH_ACCELERATOR = 2, + /** + Return the label without any ellipsis at the end. + + By default, stock items text is returned with ellipsis, if appropriate, + this flag allows to avoid having it. So using the same example as + above, the returned string would be "Print" or "&Print" if + wxSTOCK_WITH_MNEMONIC were also used. + + This flag can't be combined with wxSTOCK_WITH_ACCELERATOR. + + @since 2.9.1 + */ + wxSTOCK_WITHOUT_ELLIPSIS = 4, + /** Return the label appropriate for a button and not a menu item. @@ -45,8 +59,10 @@ enum wxStockLabelQueryFlag wxID_PRINT when this flag is used is "&Print". This flag can't be combined with wxSTOCK_WITH_ACCELERATOR. + + @since 2.9.1 */ - wxSTOCK_FOR_BUTTON = 5 + wxSTOCK_FOR_BUTTON = wxSTOCK_WITHOUT_ELLIPSIS | wxSTOCK_WITH_MNEMONIC }; /** @addtogroup group_funcmacro_misc */