]> git.saurik.com Git - wxWidgets.git/commitdiff
applying patch, closes #13045
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 17 Feb 2013 16:17:20 +0000 (16:17 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 17 Feb 2013 16:17:20 +0000 (16:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/notebook.mm

index c314bc6389e4ec0eeafccc4801a944ea9770fa9d..973fcf5adeba289bc46e8d1dbb9d57581ebd3297 100644 (file)
@@ -260,6 +260,26 @@ public:
             }
         }
     }
+
+    int TabHitTest(const wxPoint & pt, long* flags)
+    {
+        int retval = wxNOT_FOUND;
+        
+        NSPoint nspt = wxToNSPoint( m_osxView, pt );
+        
+        wxNSTabView* slf = (wxNSTabView*) m_osxView;
+        
+        NSTabViewItem* hitItem = [slf tabViewItemAtPoint:nspt];
+        
+        if (!hitItem) {
+            *flags = wxBK_HITTEST_NOWHERE;
+        } else {
+            retval = [slf indexOfTabViewItem:hitItem];
+            *flags = wxBK_HITTEST_ONLABEL;
+        }
+        
+        return retval; 
+    }
 };