mentioned that the handlers should be allocated on the heap also in ClearHandlers() docs (and not only in AddHandle() section)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,7 +73,8 @@ that the handler name is equal to the control's name plus 'XmlHandler', for exam
|
|||||||
wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. The XML resource compiler
|
wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. The XML resource compiler
|
||||||
(wxxrc) can create include file that contains initialization code for
|
(wxxrc) can create include file that contains initialization code for
|
||||||
all controls used within the resource. Note that this handler should be
|
all controls used within the resource. Note that this handler should be
|
||||||
located on heap instead of stack, since it will get destroyed on shutdown.
|
allocated on the heap, since it will be delete by
|
||||||
|
\helpref{ClearHandlers}{wxxmlresourceclearhandlers} later.
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxXmlResource::AttachUnknownControl}\label{wxxmlresourceattachunknowncontrol}
|
\membersection{wxXmlResource::AttachUnknownControl}\label{wxxmlresourceattachunknowncontrol}
|
||||||
@@ -88,7 +89,8 @@ Unknown controls are used in conjunction with <object class="unknown">.
|
|||||||
|
|
||||||
\func{void}{ClearHandlers}{\void}
|
\func{void}{ClearHandlers}{\void}
|
||||||
|
|
||||||
Removes all handlers.
|
Removes all handlers and deletes them (this means that any handlers added using
|
||||||
|
\helpref{AddHandler}{wxxmlresourceaddhandler} must be allocated on the heap).
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxXmlResource::CompareVersion}\label{wxxmlresourcecompareversion}
|
\membersection{wxXmlResource::CompareVersion}\label{wxxmlresourcecompareversion}
|
||||||
|
Reference in New Issue
Block a user