From 976b87167fda175f9d9fc1bd253ddd94640a49d7 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Sun, 26 Sep 2004 04:19:56 +0000 Subject: [PATCH] Fix 10.2 focus issues git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/textctrl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index b48b9bf04c..d17000a39a 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -300,6 +300,7 @@ public : const wxSize& size, long style ) ; ~wxMacMLTEClassicControl() ; virtual void VisibilityChanged(bool shown) ; + virtual bool NeedsFocusRect() const; protected : OSStatus DoCreate(); public : @@ -2472,6 +2473,11 @@ OSStatus wxMacMLTEClassicControl::DoCreate() return err; } +bool wxMacMLTEClassicControl::NeedsFocusRect() const +{ + return m_windowStyle & wxNO_BORDER ? false : true; +} + // ---------------------------------------------------------------------------- // MLTE control implementation (OSX part) // ---------------------------------------------------------------------------- -- 2.45.2