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 ;