From cfeff6f71c716a19a9651b176dce26534c4da216 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 30 Apr 2004 12:30:20 +0000 Subject: [PATCH] adaption for CW 8.3 and quick hack for unicode text control size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/textctrl.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index f260ca06fc..f05af51e45 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -1413,7 +1413,9 @@ void wxTextCtrl::WriteText(const wxString& str) { if ( !wxIsMainThread() ) { - wxMacMPRemoteGUICall( this , &wxTextCtrl::WriteText , str ) ; + // unfortunately CW 8 is not able to correctly deduce the template types, so we have + // to instantiate explicitely + wxMacMPRemoteGUICall( this , &wxTextCtrl::WriteText , str ) ; return ; } else @@ -1516,6 +1518,13 @@ wxSize wxTextCtrl::DoGetBestSize() const break ; } +#if !wxMAC_USE_MLTE + // unicode text control is using client size, ie 3 pixels on every side + // TODO make this fit into normal window size concept, probably having + // to reintroduce the margin vars + hText -= 6 ; +#endif + if ( m_windowStyle & wxTE_MULTILINE ) { hText *= 5 ; -- 2.50.0