X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a56a1234a58e8e4b6f25baee902cecabab7b73be..c8b1fdc0b52fbc0ce71ab54b4b8954643f788f2a:/include/wx/aui/auibook.h diff --git a/include/wx/aui/auibook.h b/include/wx/aui/auibook.h index 05ebfdacf2..28358f7d0c 100644 --- a/include/wx/aui/auibook.h +++ b/include/wx/aui/auibook.h @@ -562,6 +562,14 @@ protected: void OnTabEndDrag(wxCommandEvent& evt); void OnTabButton(wxCommandEvent& evt); + // set selection to the given window (which must be non-NULL and be one of + // our pages, otherwise an assert is raised) + void SetSelectionToWindow(wxWindow *win); + void SetSelectionToPage(const wxAuiNotebookPage& page) + { + SetSelectionToWindow(page.window); + } + protected: wxAuiManager m_mgr;