X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a6a553013e382125be998774de12bd75f218665..762e199741e236841278dfa6c08a7a0ca376252e:/docs/latex/wx/xmlresh.tex diff --git a/docs/latex/wx/xmlresh.tex b/docs/latex/wx/xmlresh.tex index 97f5b0fdff..eb6e2ba273 100644 --- a/docs/latex/wx/xmlresh.tex +++ b/docs/latex/wx/xmlresh.tex @@ -56,6 +56,13 @@ Add styles common to all wxWindow-derived classes. Returns TRUE if it understands this node and can create a resource from it, FALSE otherwise. +\wxheading{Note} + +You must {\bf not} call any wxXmlResourceHandler methods except +\helpref{IsOfClass}{wxxmlresourcehandlerisofclass} from this method! The instance +is not yet initialized with node data at the time CanHandle is called and it is only +safe to operate on {\it node} directly or to call IsOfClass. + \membersection{wxXmlResourceHandler::CreateChildren}\label{wxxmlresourcehandlercreatechildren} \func{void}{CreateChildren}{\param{wxObject* }{parent}, \param{bool }{this\_hnd\_only = FALSE}} @@ -80,7 +87,7 @@ Creates a resource from a node. Creates an object (menu, dialog, control, ...) from an XML node. Should check for validity. {\it parent} is a higher-level object (usually window, dialog or panel) -that is often neccessary to create the resource. +that is often necessary to create the resource. If {\bf instance} is non-NULL it should not create a new instance via 'new' but should rather use this one, and call its Create method. @@ -196,7 +203,7 @@ Gets text from param and does some conversions: \begin{itemize}\itemsep=0pt \item replaces $\backslash$n, $\backslash$r, $\backslash$t by respective characters (according to C syntax) -\item replaces \tt{\$} by \tt{\&} and \tt{\$\$} by \tt{\$} (needed for \tt{\_File} to \tt{\&File} +\item replaces {\tt\$} by {\tt\&} and {\tt\$\$} by {\tt\$} (needed for {\tt\_File} to {\tt\&File} translation because of XML syntax) \item calls wxGetTranslations (unless disabled in wxXmlResource) \end{itemize}