]> git.saurik.com Git - wxWidgets.git/commitdiff
Enable XRC to call wxStaticText::Wrap
authorRobin Dunn <robin@alldunn.com>
Sun, 9 Mar 2008 03:27:54 +0000 (03:27 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 9 Mar 2008 03:27:54 +0000 (03:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_sttxt.cpp

index 229c5526f87c8b5827e3422f0c84bbd7e069511b..9986696777e167084b8f288f924ea82bfde0434e 100644 (file)
@@ -48,6 +48,10 @@ wxObject *wxStaticTextXmlHandler::DoCreateResource()
 
     SetupWindow(text);
 
+    long wrap = GetLong(wxT("wrap"), -1);
+    if (wrap != -1)
+        text->Wrap(wrap);
+
     return text;
 }