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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user