From b8a91a00eb8a81b04f760abdd1311d109a4b71da Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 9 Mar 2008 03:27:15 +0000 Subject: [PATCH] Enable XRC to call wxStaticText::Wrap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52398 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; }