X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f60d0f944a6ce86bce59901e7ea3811f0992bce7..61ef57fc5ec21c6561ec4a1f6b68bcc8e7a01b29:/src/generic/notebook.cpp diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index dca6679456..90782f4545 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -29,7 +29,8 @@ #include #include -#include +#include +#include #include #include @@ -600,6 +601,11 @@ wxRect wxNotebook::GetAvailableClientSize() return rect; } +void wxNotebook::SetTabSize(const wxSize& sz) +{ + // TODO +} + /* * wxNotebookTabView */ @@ -625,7 +631,12 @@ void wxNotebookTabView::OnTabActivate(int activateId, int deactivateId) if (!m_notebook) return; +// Because of name truncation! +#if defined(__BORLANDC__) && defined(__WIN16__) + wxNotebookEvent event(wxEVT_COMMAND_NB_PAGE_CHANGED, m_notebook->GetId()); +#else wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, m_notebook->GetId()); +#endif // Translate from wxTabView's ids (which aren't position-dependent) // to wxNotebook's (which are).