Enhanced wxGetStockLabel() with parameters which replace platform specific #ifdefs for wxPalmOS and wxWinCE and better serve for getting consistent wxMenuItem and wxToolBar labels (with documentation).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2911,6 +2911,28 @@ See also \helpref{wxWriteResource}{wxwriteresource}, \helpref{wxConfigBase}{wxco
|
||||
<wx/utils.h>
|
||||
|
||||
|
||||
\membersection{::wxGetStockLabel}\label{wxgetstocklabel}
|
||||
|
||||
\func{wxString}{wxGetStockLabel}{\param{wxWindowID }{id}, \param{bool }{withCodes = true}, \param{wxString }{accelerator = wxEmptyString}}
|
||||
|
||||
Returns label that should be used for given {\it id} element.
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{id}{given id of the \helpref{wxMenuItem}{wxmenuitem}, \helpref{wxButton}{wxbutton}, \helpref{wxToolBar}{wxtoolbar} tool, etc.}
|
||||
|
||||
\docparam{withCodes}{if false then strip accelerator code from the label;
|
||||
usefull for getting labels without accelerator char code like for toolbar tooltip or
|
||||
under platforms without traditional keyboard like smartphones}
|
||||
|
||||
\docparam{accelerator}{optional accelerator string automatically added to label; useful
|
||||
for building labels for \helpref{wxMenuItem}{wxmenuitem}}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
<wx/stockitem.h>
|
||||
|
||||
|
||||
\membersection{::wxGetTopLevelParent}\label{wxgettoplevelparent}
|
||||
|
||||
\func{wxWindow *}{wxGetTopLevelParent}{\param{wxWindow }{*win}}
|
||||
|
Reference in New Issue
Block a user