X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c560da981a3304b3fa9e4b7be61f60f3f226946b..54753153a66a78a67a8129ff37982ad3abe5c291:/docs/latex/wx/xmlres.tex diff --git a/docs/latex/wx/xmlres.tex b/docs/latex/wx/xmlres.tex index 15efa2a074..9a5488d2e7 100644 --- a/docs/latex/wx/xmlres.tex +++ b/docs/latex/wx/xmlres.tex @@ -19,6 +19,10 @@ See \helpref{XML-based resource system overview}{xrcoverview} for details. +\wxheading{Library} + +\helpref{wxXrc}{librarieslist} + \wxheading{Constants} \begin{verbatim} @@ -92,7 +96,7 @@ allocated on the heap, since it will be delete by \membersection{wxXmlResource::AttachUnknownControl}\label{wxxmlresourceattachunknowncontrol} -\func{bool}{AttachUnknownControl}{\param{const wxString\& }{name}, \param{wxWindow* }{control}, \param{wxWindow* }{parent = NULL}} +\func{bool}{AttachUnknownControl}{\param{const wxString\& }{name}, \param{wxWindow* }{control}, \param{wxWindow* }{parent = \NULL}} Attaches an unknown control to the given panel/window/dialog. Unknown controls are used in conjunction with . @@ -188,7 +192,7 @@ Example: \begin{verbatim} MyDialog dlg; wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog"); - dlg->ShowModal(); + dlg.ShowModal(); \end{verbatim} @@ -210,18 +214,30 @@ Loads an icon resource from a file. \func{wxMenu*}{LoadMenu}{\param{const wxString\& }{name}} -Loads menu from resource. Returns NULL on failure. +Loads menu from resource. Returns \NULL on failure. \membersection{wxXmlResource::LoadMenuBar}\label{wxxmlresourceloadmenubar} \func{wxMenuBar*}{LoadMenuBar}{\param{wxWindow* }{parent}, \param{const wxString\& }{name}} -Loads a menubar from resource. Returns NULL on failure. - \func{wxMenuBar*}{LoadMenuBar}{\param{const wxString\& }{name}} -Loads a menubar from resource. Returns NULL on failure. +Loads a menubar from resource. Returns \NULL on failure. + + +\membersection{wxXmlResource::LoadObject}\label{wxxmlresourceloadobject} + +\func{wxObject*}{LoadObject}{\param{wxWindow* }{parent}, \param{const wxString\& }{name}, \param{const wxString\& }{classname}} + +\func{bool}{LoadObject}{\param{wxObject* }{instance}, \param{wxWindow* }{parent}, \param{const wxString\& }{name}, \param{const wxString\& }{classname}} + +Load an object from the resource specifying both the resource name and the +class name. + +The first overload lets you load nonstandard container windows and returns \NULL +on failure. The second one lets you finish the creation of an existing +instance and returns \false on failure. \membersection{wxXmlResource::LoadPanel}\label{wxxmlresourceloadpanel} @@ -247,7 +263,7 @@ Loads a toolbar. \func{wxXmlResource*}{Set}{\param{wxXmlResource* }{res}} -Sets the global resources object and returns a pointer to the previous one (may be NULL). +Sets the global resources object and returns a pointer to the previous one (may be \NULL). \membersection{wxXmlResource::SetFlags}\label{wxxmlresourcesetflags}