From bdfc577a3b8c360d48c4d094d532786de44c5aed Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 24 Feb 2022 10:18:02 +0100 Subject: Start BaseTab design --- src/MainWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/MainWindow.cpp') diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 83fd964..0a79bc2 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -43,6 +43,12 @@ MainWindow::MainWindow() notebook = new wxAuiNotebook(this, wxID_ANY); NewGame(new Game()); + // Test base tab + BaseTab *bt = new BaseTab((wxFrame *)notebook); + bt->SetLabel("New Base"); + notebook->AddPage(bt, bt->GetLabel()); + notebook->SetSelection(notebook->GetPageIndex(bt)); + Bind(wxEVT_AUINOTEBOOK_PAGE_CHANGED, &MainWindow::OnPageChange, this, wxID_ANY); Bind(REFRESH_TAB_TITLE, &MainWindow::OnRefreshTabTitle, this, wxID_ANY); -- cgit v1.2.3