]> git.saurik.com Git - wxWidgets.git/commitdiff
remove hack since it doubly-draws focus rects
authorRyan Norton <wxprojects@comcast.net>
Thu, 4 Nov 2004 18:59:17 +0000 (18:59 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 4 Nov 2004 18:59:17 +0000 (18:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp

index 92e971a0190e59251f337d60385e253f72ab9c89..9485a5b144c611f4ce7699c2afdb6f5283f9319c 100644 (file)
@@ -252,7 +252,6 @@ public :
                              const wxSize& size, long style ) ;
     virtual OSStatus SetFocus( ControlFocusPart focusPart ) ;
     virtual bool HasFocus() const ;
-    virtual bool NeedsFocusRect() const ;
 protected :
     HIViewRef m_scrollView ;
     HIViewRef m_textView ;
@@ -2473,21 +2472,6 @@ OSStatus wxMacMLTEClassicControl::DoCreate()
     return err;
 }
 
-//
-// HACKHACK: (RN)
-// Classic controls are not initially focused and
-// smaller ones are focused badly with the focus rect
-// this "fixes" the above issue - but there is probably a 
-// a better way.
-//
-// Still, on smaller text controls the focus rect is off
-//
-
-bool wxMacMLTEClassicControl::NeedsFocusRect() const 
-{
-    return m_windowStyle & wxNO_BORDER ? false : true;
-}
-
 // ----------------------------------------------------------------------------
 // MLTE control implementation (OSX part)
 // ----------------------------------------------------------------------------