X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b2a74693ea0ac096f5099caac4a5ead3268e07f..22d8c8bf43707108cef4c1f9f0f0e103f38285db:/docs/latex/wx/xmlres.tex diff --git a/docs/latex/wx/xmlres.tex b/docs/latex/wx/xmlres.tex index 8d0e7b8382..05e6b72dfd 100644 --- a/docs/latex/wx/xmlres.tex +++ b/docs/latex/wx/xmlres.tex @@ -72,7 +72,9 @@ Initializes only a specific handler (or custom handler). Convention says that the handler name is equal to the control's name plus 'XmlHandler', for example wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. The XML resource compiler (wxxrc) can create include file that contains initialization code for -all controls used within the resource. +all controls used within the resource. Note that this handler should be +allocated on the heap, since it will be delete by +\helpref{ClearHandlers}{wxxmlresourceclearhandlers} later. \membersection{wxXmlResource::AttachUnknownControl}\label{wxxmlresourceattachunknowncontrol} @@ -87,7 +89,8 @@ Unknown controls are used in conjunction with . \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}