- Code: Select all
if ((new_selection != GetActivePage() ||
GetParent()->IsKindOf(CLASSINFO(wxAuiNotebook))) && !m_hover_button)
{
wxAuiNotebookEvent e(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, m_windowId);
e.SetSelection(new_selection);
e.SetOldSelection(GetActivePage());
e.SetEventObject(this);
GetEventHandler()->ProcessEvent(e);
}
Only thing different is the !m_hover_button. But, I found a strange glitch that results from this. If I drag the tab to close to very left position (index 0), then close it, there become strange little dead spaces on the remaining tabs whereby clicking them has no effect.
So, does anyone have a better solution to this problem?