]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/notebook.cpp
Return optimal label width from DrawHeaderButton
[wxWidgets.git] / src / generic / notebook.cpp
index 1d62732c1a160649971cf9fbf27b5b33d594fab5..a77f340b2ecd97d4f6ac69288c3956cae4201e7e 100644 (file)
@@ -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)
 {