allow to specify the value for unknown ids in GetXRCID() (patch 1448981)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -121,12 +121,14 @@ Returns version information (a.b.c.d = d+ 256*c + 256\textasciicircum2*b + 256\t
|
||||
|
||||
\membersection{wxXmlResource::GetXRCID}\label{wxxmlresourcegetxmlid}
|
||||
|
||||
\func{int}{GetXRCID}{\param{const wxChar* }{str\_id}}
|
||||
\func{int}{GetXRCID}{\param{const wxChar* }{str\_id}, \param{int }{value\_if\_not\_found = -2}}
|
||||
|
||||
Returns a numeric ID that is equivalent to the string ID used in an XML
|
||||
resource. To be used in event tables.
|
||||
The macro {\tt XRCID(name)} is provided for convenience.
|
||||
|
||||
resource. If an unknown \arg{str\_id} is requested (i.e. other than wxID\_XXX
|
||||
or integer), a new record is created which associates the given string with
|
||||
a number. If \arg{value\_if\_not\_found} is \texttt{wxID\_NONE}, the number is obtained via
|
||||
\helpref{wxNewId()}{wxnewid}. Otherwise \arg{value\_if\_not\_found} is used.
|
||||
Macro {\tt XRCID(name)} is provided for convenient use in event tables.
|
||||
|
||||
\membersection{wxXmlResource::InitAllHandlers}\label{wxxmlresourceinitallhandlers}
|
||||
|
||||
|
Reference in New Issue
Block a user