From 005659f0ffe0b280c3f800a5706b93fe9b78276e Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 17 Feb 2013 16:17:20 +0000 Subject: [PATCH] applying patch, closes #13045 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/notebook.mm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/osx/cocoa/notebook.mm b/src/osx/cocoa/notebook.mm index c314bc6389..973fcf5ade 100644 --- a/src/osx/cocoa/notebook.mm +++ b/src/osx/cocoa/notebook.mm @@ -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; + } }; -- 2.45.2