X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c997853f3bf0a2f88a3502328edf579c6afc88..6442cf6b20072ca71897c2faf8ff8bd033fd6def:/samples/notebook/notebook.cpp diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index cfa1b98282..e15d1c5f46 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -390,19 +390,7 @@ int MyFrame::SelectFlag(int id, int nb, int lb, int chb) } \ else \ { \ - wxPanel *panel = CreateRadioButtonsPage(newBook); \ - newBook->AddPage( panel, RADIOBUTTONS_PAGE_NAME, false, GetIconIndex(newBook) ); \ - \ - panel = CreateVetoPage(newBook); \ - newBook->AddPage( panel, VETO_PAGE_NAME, false, GetIconIndex(newBook) ); \ - \ - panel = CreateBigButtonPage(newBook); \ - newBook->AddPage( panel, MAXIMIZED_BUTTON_PAGE_NAME, false, GetIconIndex(newBook) ); \ - \ - panel = CreateInsertPage(newBook); \ - newBook->InsertPage( 0, panel, I_WAS_INSERTED_PAGE_NAME, false, GetIconIndex(newBook) ); \ - \ - newBook->SetSelection(1); \ + CreateInitialPages(newBook); \ } \ \ m_sizerFrame->Insert(0, newBook, 5, wxEXPAND | wxALL, 4); \