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
This commit is contained in:
Julian Smart
2009-06-17 23:06:36 +00:00
parent d91c632a9a
commit f6ca6062f1

View File

@@ -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
)