From 30aaee95143ef93c06e5186ba77f7468742eb76b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 9 Mar 2008 03:27:54 +0000 Subject: [PATCH] Enable XRC to call wxStaticText::Wrap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xh_sttxt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrc/xh_sttxt.cpp b/src/xrc/xh_sttxt.cpp index 229c5526f8..9986696777 100644 --- a/src/xrc/xh_sttxt.cpp +++ b/src/xrc/xh_sttxt.cpp @@ -48,6 +48,10 @@ wxObject *wxStaticTextXmlHandler::DoCreateResource() SetupWindow(text); + long wrap = GetLong(wxT("wrap"), -1); + if (wrap != -1) + text->Wrap(wrap); + return text; }