mirror of https://github.com/BOINC/boinc.git
MGR: Fix alignment and arrangement of OK, Cancel and Defaults buttons in new Diagnostics dialog. Correction to earlier commit message: It is accessed by selecting "Diagnostics…" under the Tools menu in either Advanced View or Simple View.
This commit is contained in:
parent
199d201ea5
commit
fbbbd25ff2
|
@ -65,20 +65,20 @@ CDlgDiagnosticLogFlags::CDlgDiagnosticLogFlags(wxWindow* parent) :
|
||||||
|
|
||||||
wxBoxSizer* buttonSizer = new wxBoxSizer( wxHORIZONTAL );
|
wxBoxSizer* buttonSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxButton* btnOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
wxButton* btnDefaults = new wxButton( this, ID_DEFAULTSBTN, _("Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
btnOK->SetToolTip( _("save all values and close the dialog") );
|
btnDefaults->SetToolTip( _("Restore default settings") );
|
||||||
buttonSizer->Add( btnOK, 0, wxALL, 5 );
|
buttonSizer->Add( btnDefaults, 0, wxALL, 5 );
|
||||||
|
|
||||||
wxButton* btnCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
wxButton* btnCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
btnCancel->SetToolTip( _("close the dialog without saving") );
|
btnCancel->SetToolTip( _("close the dialog without saving") );
|
||||||
buttonSizer->Add( btnCancel, 0, wxALL, 5 );
|
buttonSizer->Add( btnCancel, 0, wxALL, 5 );
|
||||||
|
|
||||||
wxButton* btnDefaults = new wxButton( this, ID_DEFAULTSBTN, _("Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
|
wxButton* btnOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
btnDefaults->SetToolTip( _("Restore default settings") );
|
btnOK->SetToolTip( _("save all values and close the dialog") );
|
||||||
buttonSizer->Add( btnDefaults, 0, wxALL, 5 );
|
buttonSizer->Add( btnOK, 0, wxALL, 5 );
|
||||||
|
|
||||||
btnCancel->SetDefault();
|
btnCancel->SetDefault();
|
||||||
bSizer1->Add( buttonSizer, 0, wxALL, 5 );
|
bSizer1->Add( buttonSizer, 0, wxALIGN_RIGHT | wxALL, 15 );
|
||||||
|
|
||||||
SetSizer( bSizer1 );
|
SetSizer( bSizer1 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue