Thanks a ton. Here's the code if anyone interested
Code:
DemoFrame::DemoFrame(const wxString& title)
: wxFrame(NULL, wxID_ANY, title) {
wxPanel *Panel1 = new wxPanel(this, id_panel);
Panel1->SetFont(wxFont(8, wxSWISS, wxNORMAL, wxNORMAL, false, wxT("Tahoma")));
wxButton *button = new wxButton(Panel1, id_but1, "First");
wxButton *button2 = new wxButton(Panel1, id_but2, "Don't click Me");
wxButton *button3 = new wxButton(Panel1, id_but3, "Yay. Last one");
wxSizer *sizer = new wxBoxSizer(wxVERTICAL);
Panel1->SetSizer(sizer);
sizer->Add(button, 1, wxALIGN_RIGHT);
sizer->Add(button2, 1, wxALIGN_LEFT);
sizer->Add(button3, 1, wxALIGN_CENTER);
Panel1->SetSizer(sizer);
sizer->SetSizeHints(this);
}
Of course, you will need to declare the wxWindowIDs.
*wipes tear from eye*. This is great. I can almost remeber 6 years ago when i was doing something like this in visual basic ^^