]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_text.cpp
set SMALL_FONT for controls here because InheritAttributes() doesn't do it any longer
[wxWidgets.git] / contrib / src / xrc / xh_text.cpp
index a2d360643cb29166c9b1da0216402212ec53c389..4d4e88413a50f0252bb3d94f59908703e8523439 100644 (file)
@@ -22,6 +22,8 @@
 #include "wx/xrc/xh_text.h"
 #include "wx/textctrl.h"
 
+IMPLEMENT_DYNAMIC_CLASS(wxTextCtrlXmlHandler, wxXmlResourceHandler)
+
 wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler() 
 {
     XRC_ADD_STYLE(wxTE_PROCESS_ENTER);
@@ -30,6 +32,16 @@ wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler()
     XRC_ADD_STYLE(wxTE_PASSWORD);
     XRC_ADD_STYLE(wxTE_READONLY);
     XRC_ADD_STYLE(wxHSCROLL);
+    XRC_ADD_STYLE(wxTE_RICH);
+    XRC_ADD_STYLE(wxTE_RICH2);
+    XRC_ADD_STYLE(wxTE_AUTO_URL);
+    XRC_ADD_STYLE(wxTE_NOHIDESEL);
+    XRC_ADD_STYLE(wxTE_LEFT);
+    XRC_ADD_STYLE(wxTE_CENTRE);
+    XRC_ADD_STYLE(wxTE_RIGHT);
+    XRC_ADD_STYLE(wxTE_DONTWRAP);
+    XRC_ADD_STYLE(wxTE_LINEWRAP);
+    XRC_ADD_STYLE(wxTE_WORDWRAP);
     AddWindowStyles();
 }