m_pressedButton = m_hoverButton;
m_pressedButton->curState = wxAUI_BUTTON_STATE_PRESSED;
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
}
}
}
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
if (!(m_pressedButton->curState & wxAUI_BUTTON_STATE_DISABLED))
{
m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
m_hoverButton = NULL;
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
}
if (button->curState != wxAUI_BUTTON_STATE_HOVER)
{
button->curState = wxAUI_BUTTON_STATE_HOVER;
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
+
m_hoverButton = button;
return;
}
m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
m_hoverButton = NULL;
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
}
}
m_hoverButton->curState = wxAUI_BUTTON_STATE_NORMAL;
m_hoverButton = NULL;
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
}
}
{
SetTabOffset(GetTabOffset()-1);
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
}
}
else
{
SetTabOffset(GetTabOffset()+1);
Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
Update();
-#endif
}
}
else if (button == wxAUI_BUTTON_WINDOWLIST)
// TODO: else if (GetFlags() & wxAUI_NB_RIGHT){}
m_tabs->Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
m_tabs->Update();
-#endif
wxAuiNotebookPageArray& pages = m_tabs->GetPages();
size_t i, page_count = pages.GetCount();
tabctrl->SetFlags(m_flags);
tabframe->DoSizing();
tabctrl->Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
tabctrl->Update();
-#endif
}
}
}
wxAuiNotebookPage& info = ctrl->GetPage(ctrl_idx);
info.caption = text;
ctrl->Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
ctrl->Update();
-#endif
}
return true;
wxAuiNotebookPage& info = ctrl->GetPage(ctrl_idx);
info.bitmap = bitmap;
ctrl->Refresh();
-#ifdef TODO_REMOVE_IF_NO_PROBLEMS
ctrl->Update();
-#endif
}
return true;
wxWindow* wxAuiNotebook::GetCurrentPage () const
{
- return GetPage(GetSelection());
+ const int sel = GetSelection();
+
+ return sel == wxNOT_FOUND ? NULL : GetPage(sel);
}
int wxAuiNotebook::ChangeSelection(size_t n)