37 int tab = GetTabFromPoint(wxGetMousePosition());
39 if (tab != wxNOT_FOUND)
58 wxPoint client_pt = ScreenToClient(pt);
59 wxAuiTabCtrl* tabCtrl = GetTabCtrlFromPoint(client_pt);
66 wxPoint tl = tabCtrl->GetScreenRect().GetTopLeft();
68 bool success = tabCtrl->TabHitTest(pt.x-tl.x, pt.y-tl.y, &win);
73 return m_tabs.GetIdxFromWindow(win);
void OnTabMove(wxAuiNotebookEvent &event)
This event handler fixes the issue that the control does not correctly update the selected page durin...
int GetTabFromPoint(const wxPoint &pt)
Returns the tab at the defined absolute coordinates. Actually more or less the same than the generic ...