Misc. sizer tweaks

Originally committed to SVN as r997.
This commit is contained in:
Niels Martin Hansen 2007-04-04 02:54:03 +00:00
parent 5457b64925
commit a524881505
2 changed files with 6 additions and 5 deletions

View file

@ -150,8 +150,8 @@ DialogDummyVideo::DialogDummyVideo(wxWindow *parent)
fg->AddStretchSpacer();
fg->Add(length_display, 0, wxEXPAND|wxALIGN_CENTRE_VERTICAL|wxALIGN_LEFT);
wxBoxSizer *main_sizer = new wxBoxSizer(wxVERTICAL);
main_sizer->Add(fg, 0, wxALL, 5);
main_sizer->Add(CreateButtonSizer(wxOK|wxCANCEL), 0, wxLEFT|wxRIGHT|wxBOTTOM, 5);
main_sizer->Add(fg, 0, wxALL|wxEXPAND, 5);
main_sizer->Add(CreateSeparatedButtonSizer(wxOK|wxCANCEL), 0, wxALL|wxEXPAND, 5);
ok_button = static_cast<wxButton*>(FindWindow(wxID_OK));
cancel_button = static_cast<wxButton*>(FindWindow(wxID_CANCEL));

View file

@ -579,10 +579,11 @@ DialogOptions::DialogOptions(wxWindow *parent)
#endif
// Buttons Sizer
//wxStdDialogButtonSizer *buttonSizer = static_cast<wxStdDialogButtonSizer*>(CreateButtonSizer(wxOK|wxCANCEL));
wxStdDialogButtonSizer *buttonSizer = new wxStdDialogButtonSizer();
buttonSizer->Add(new wxButton(this,wxID_OK));
buttonSizer->Add(new wxButton(this,wxID_CANCEL));
buttonSizer->Add(new wxButton(this,wxID_APPLY));
buttonSizer->AddButton(new wxButton(this,wxID_OK));
buttonSizer->AddButton(new wxButton(this,wxID_CANCEL));
buttonSizer->AddButton(new wxButton(this,wxID_APPLY));
buttonSizer->Realize();
// Main Sizer