Start BaseTab design

This commit is contained in:
Loic Guegan 2022-02-24 10:18:02 +01:00
parent a8fece4ea6
commit bdfc577a3b
8 changed files with 618 additions and 1 deletions

View file

@ -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);