mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
Make use of wxStdDialogButtonSizer wherever appropriate.
This makes button spacing more consistent and uses the native button order of the OK/Cancel/... buttons. (Mostly) fixes issue 4390. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7581 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -26,8 +26,6 @@ UDPConfigDiag::UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp) :
|
||||
nun = new wxCheckBox(this, wxID_ANY, _("Nunchuk"));
|
||||
nunaccel = new wxCheckBox(this, wxID_ANY, _("Nunchuk Acceleration"));
|
||||
|
||||
wxButton *const ok_butt = new wxButton(this, wxID_OK, _("OK"));
|
||||
|
||||
wxBoxSizer *const port_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
port_sizer->Add(new wxStaticText(this, wxID_ANY, _("UDP Port:")), 0, wxALIGN_CENTER);
|
||||
port_tbox = new wxTextCtrl(this, wxID_ANY, wxString::FromUTF8(wrp->port.c_str()));
|
||||
@ -57,7 +55,7 @@ UDPConfigDiag::UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp) :
|
||||
sizer2->Add(nun, 1, wxALL | wxEXPAND, 5);
|
||||
sizer2->Add(nunaccel, 1, wxALL | wxEXPAND, 5);
|
||||
|
||||
outer_sizer->Add(ok_butt, 0, wxALL | wxALIGN_RIGHT, 5);
|
||||
outer_sizer->Add(CreateButtonSizer(wxOK), 0, wxALL | wxALIGN_RIGHT, 5);
|
||||
|
||||
SetSizerAndFit(outer_sizer);
|
||||
Center();
|
||||
|
Reference in New Issue
Block a user