X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6adfdf93495b0e569c30431cb51f296126d4e37..9bf6a1b80cb856903e15387ebecc926142e73010:/docs/latex/wx/txrc.tex diff --git a/docs/latex/wx/txrc.tex b/docs/latex/wx/txrc.tex index c47f67f62d..3a11b955d7 100644 --- a/docs/latex/wx/txrc.tex +++ b/docs/latex/wx/txrc.tex @@ -55,7 +55,6 @@ To create an XRC file, you can use one of the following methods. dialog editor that you can find in the {\tt wxPython/tools} subdirectory of the wxWidgets CVS archive; \item use \urlref{wxGlade}{http://wxglade.sf.net}, a GUI designer written in wxPython. At the moment it can generate Python, C++ and XRC; -\item convert WIN32 RC files to XRC with the tool in {\tt contrib/utils/convertrc}. \end{itemize} A complete list of third-party tools that write to XRC can be found at \urlref{www.wxwidgets.org/lnk\_tool.htm}{http://www.wxwidgets.org/lnk\_tool.htm}. @@ -321,7 +320,7 @@ This is the XML file (resource.xrc) for the XRC sample. - + wxALIGN_CENTER @@ -380,7 +379,7 @@ This is the XML file (resource.xrc) for the XRC sample. 200,200d - + Hello, this is an ordinary multiline\n textctrl.... @@ -507,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} @@ -545,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