From 6e2717981772a139d3cd9e51d497b13792fe662d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 8 Oct 2006 23:53:34 +0000 Subject: [PATCH] define ChangeSelection() (fixes wxMotif build) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/notebook.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index 1d62732c1a..a77f340b2e 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -152,7 +152,7 @@ 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)) @@ -192,6 +192,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) {