+}
+
+void MyFrame::OnSetSelection(wxCommandEvent& WXUNUSED(event))
+{
+ wxBookCtrlBase *currBook = GetCurrentBook();
+
+ if ( currBook )
+ currBook->SetSelection(0);
+}
+
+void MyFrame::OnGetPageSize(wxCommandEvent& WXUNUSED(event))
+{
+ wxBookCtrlBase* const currBook = GetCurrentBook();
+ if ( !currBook )
+ return;
+
+ const wxSize sizePage = currBook->GetPage(0)->GetSize();
+ const wxSize sizeBook = currBook->GetSize();
+
+ wxLogMessage("Page size is (%d, %d), book size (%d, %d)",
+ sizePage.x, sizePage.y,
+ sizeBook.x, sizeBook.y);
+}
+
+void MyFrame::OnSetPageSize(wxCommandEvent& WXUNUSED(event))
+{
+ wxBookCtrlBase* const currBook = GetCurrentBook();
+ if ( !currBook )
+ return;
+
+ const wxSize sizePage(300, 300);
+ currBook->SetPageSize(sizePage);
+
+ wxLogMessage("Page size set to (%d, %d)",
+ sizePage.x, sizePage.y);