X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c36c09cd5f591c3b047a7c7367e7ce91d069cdd..d6f2a8911e509fd9e61f881cc881a97f5aa05ae8:/src/generic/notebook.cpp diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index 1d62732c1a..fd5c9f05ea 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -152,14 +152,12 @@ bool wxNotebook::Create(wxWindow *parent, if ( (style & wxBK_ALIGN_MASK) == wxBK_DEFAULT ) style |= wxBK_TOP; - + m_windowId = id == wxID_ANY ? NewControlId() : id; if (!wxControl::Create(parent, id, pos, size, style|wxNO_BORDER, wxDefaultValidator, name)) return false; - SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); - SetTabView(new wxNotebookTabView(this)); return true; @@ -192,6 +190,12 @@ int wxNotebook::SetSelection(size_t nPage) return 0; } +int wxNotebook::ChangeSelection(size_t nPage) +{ + // FIXME: currently it does generate events too + return SetSelection(nPage); +} + #if 0 void wxNotebook::AdvanceSelection(bool bForward) {