From: Stefan Csomor Date: Sat, 8 Apr 2006 05:52:43 +0000 (+0000) Subject: ellipsis support X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/14132857777813f754d9c4bedad3c6cc32c0118a ellipsis support git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index 0884349c13..d4ba49387e 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -53,6 +53,16 @@ bool wxStaticText::Create( wxWindow *parent, &bounds, str, NULL, m_peer->GetControlRefAddr() ); verify_noerr( err ); + if ( ( style & wxST_DOTS_END ) || ( style & wxST_DOTS_MIDDLE ) ) + { + TruncCode tCode = truncEnd ; + if ( style & wxST_DOTS_MIDDLE ) + tCode = truncMiddle ; + + err = m_peer->SetData(kControlStaticTextTruncTag,tCode) ; + err = m_peer->SetData(kControlStaticTextIsMultilineTag,(Boolean)0) ; + } + MacPostControlCreate( pos, size ); return true;