X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8749ce0a6ff3e88a343a31efa0c6f4fbb21f4f77..c22eea9c9ff11cf122cebdd06f796ba6cc6e3ba0:/docs/latex/wx/txrc.tex diff --git a/docs/latex/wx/txrc.tex b/docs/latex/wx/txrc.tex index 7b2db5dabf..3a11b955d7 100644 --- a/docs/latex/wx/txrc.tex +++ b/docs/latex/wx/txrc.tex @@ -320,7 +320,7 @@ This is the XML file (resource.xrc) for the XRC sample. - + wxALIGN_CENTER @@ -379,7 +379,7 @@ This is the XML file (resource.xrc) for the XRC sample. 200,200d - + Hello, this is an ordinary multiline\n textctrl.... @@ -506,7 +506,22 @@ END_EVENT_TABLE() \end{verbatim} +It is also possible to access the wxSizerItem of a sizer that is part of +a resource. This can be done using {\tt XRCSIZERITEM} as shown. The +resource file can have something like this for a sizer item. +\begin{verbatim} + + 400, 300 + +\end{verbatim} + +The code can then access the sizer item by using {\tt XRCSIZERITEM} and +{\tt XRCID} together. + +\begin{verbatim} +wxSizerItem* item = XRCSIZERITEM(*this, "area"); +\end{verbatim} \subsection{Adding new resource handlers}\label{newresourcehandlers} @@ -544,7 +559,7 @@ IMPLEMENT_DYNAMIC_CLASS(MyControlXmlHandler, wxXmlResourceHandler) MyControlXmlHandler::MyControlXmlHandler() { // this call adds support for all wxWindows class styles - // (e.g. wxSIMPLE_BORDER, wxSUNKEN_BORDER, wxWS_EX_* etc etc) + // (e.g. wxBORDER_SIMPLE, wxBORDER_SUNKEN, wxWS_EX_* etc etc) AddWindowStyles(); // if MyControl class supports e.g. MYCONTROL_DEFAULT_STYLE