Below is a code snippet of what I tried to do.
Code: Select all
wxBoxSizer* vbs = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* hbs = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* ht1 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* vt1 = new wxBoxSizer(wxHORIZONTAL);
wxStaticText* name = new wxStaticText(panel, wxID_ANY, "Name Of the Application");
ht1->Add(name);
vt1->Add(ht1,0,wxALIGN_RIGHT);
wxButton* button1 = new wxButton(panel, wxID_ANY, "Button1", wxDefaultPosition, wxDefaultSize, wxBORDER_NONE);
wxButton* button2 = new wxButton(panel, wxID_ANY, "Button2", wxDefaultPosition, wxDefaultSize, wxBORDER_NONE);
hbs->Add(vt1,0);
hbs->Add(button1, 0);
hbs->Add(button2, 0);
vbs->Add(hbs, 0, wxALL|wxALIGN_LEFT, 2);
panel->SetSizer(vbs);