Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Looking better...

Looking better...

aftermath
Development, OSS, and pie at work · · 1 min read
1,117 0
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:





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

Discussion

Loading comments...