Looking better...
1,117
0
Advertisement
So Sizers on wxWidgets are a perfect sollution for a dynamic UI. If you ever wanted to easely make a user interface that dynamically resized it's controls based on the window size then wxWidgets Sizers are for you.
UPDATE:


UPDATE:


wxNotebook* notebook = new wxNotebook(this, -1);notebook->AddPage(new wxPanel(notebook, -1), "Hello"); wxBoxSizer* topsizer = new wxBoxSizer(wxVERTICAL);topsizer->Add(notebook, 1, wxEXPAND | wxALL, 5); wxBoxSizer* buttonszr = new wxBoxSizer(wxHORIZONTAL); buttonszr->Add(new wxButton(this, -1, "Quit"), 0, 0);buttonszr->Add(new wxButton(this, -1, "Save"), 1, wxALIGN_RIGHT);buttonszr->Add(new wxButton(this, -1, "Save && Hide"), 1, wxALIGN_RIGHT); topsizer->Add(buttonszr, 0, wxALL | wxEXPAND, 5); SetSizer(topsizer);topsizer->SetSizeHints(this);Advertisement
Advertisement
Advertisement
Discussion