Allow multiple lines for a static text

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2006-01-06 16:01:33 +00:00
parent 4a6b1d2872
commit 61cc67648d

View File

@@ -56,7 +56,10 @@ bool wxStaticText::Create(
long lSstyle = 0L; 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) if (m_windowStyle & wxALIGN_CENTRE)
lSstyle |= DT_CENTER; lSstyle |= DT_CENTER;
else if (m_windowStyle & wxALIGN_RIGHT) else if (m_windowStyle & wxALIGN_RIGHT)