From: Stefan Neis Date: Fri, 6 Jan 2006 16:01:33 +0000 (+0000) Subject: Allow multiple lines for a static text X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/61cc67648d598fc6efb4d05c20163df24bb0f66a?ds=inline Allow multiple lines for a static text git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/stattext.cpp b/src/os2/stattext.cpp index 66e4072997..a344877e2b 100644 --- a/src/os2/stattext.cpp +++ b/src/os2/stattext.cpp @@ -56,7 +56,10 @@ bool wxStaticText::Create( long lSstyle = 0L; - lSstyle = WS_VISIBLE | SS_TEXT | DT_VCENTER | DT_MNEMONIC; + // Used to have DT_VCENTER but that doesn't work correctly with + // multiline strings and DT_WORDBREAK. Accept a reasonable + // compromise for now + lSstyle = WS_VISIBLE | SS_TEXT | DT_WORDBREAK | DT_MNEMONIC; if (m_windowStyle & wxALIGN_CENTRE) lSstyle |= DT_CENTER; else if (m_windowStyle & wxALIGN_RIGHT)