X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a9f61010bcb20caed178f5616a7e5696b7de9ea..3cc305b2b4a0674c56c84d7088cfd70676b850f0:/docs/latex/wx/txrc.tex diff --git a/docs/latex/wx/txrc.tex b/docs/latex/wx/txrc.tex index bc3408e257..01558bba48 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.... @@ -513,7 +512,7 @@ END_EVENT_TABLE() Adding a new resource handler is pretty easy. Typically, to add an handler for the {\tt MyControl} class, you'll want to create -the {\tt xh_mycontrol.h} {\tt xh_mycontrol.cpp} files. +the {\tt xh\_mycontrol.h} {\tt xh\_mycontrol.cpp} files. The header needs to contains the {\tt MyControlXmlHandler} class definition: @@ -545,7 +544,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