From f6ca6062f17cff42fbaa4f3ad0d24f0db251b3e1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 17 Jun 2009 23:06:36 +0000 Subject: [PATCH] We have to avoid use of wxMacLTEHIViewControl even with CG on 10.5 because we get focus ring problems with wxSpinCtrls and wxSpinButton (to reproduce pre-this-patch, click between wxSpinCtrl and wxSpinButton in widgets sample) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/textctrl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 98239ee2d6..c50f213ea0 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -428,9 +428,12 @@ void wxTextCtrl::CreatePeer( // Non non-CG mode, borders are not refreshed properly when the focus // leaves the text control, when using wxMacMLTEHIViewControl. // This is still true on 10.5. + // In fact, even on CG, this causes problems with wxSpinCtrls, whose + // focus rings don't refresh when switching between spin controls and spin buttons. + // So for now, don't use wxMacLTEHIViewControl unless we really have to. if ( (m_windowStyle & wxTE_MULTILINE) -#if wxMAC_USE_CORE_GRAPHICS +#if 0 // wxMAC_USE_CORE_GRAPHICS || ( UMAGetSystemVersion() >= 0x1050 ) #endif )