From: Julian Smart Date: Mon, 14 Mar 2005 22:24:09 +0000 (+0000) Subject: Improve standard button spacing on Windows X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/23b1018f14b8cbdd19e29931b0ccdba46eac2f1f Improve standard button spacing on Windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 703882151e..51fb38a926 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -1754,7 +1754,7 @@ void wxStdDialogButtonSizer::Realize() // do the same thing for GTK1 and Windows platforms // and assume any platform not accounted for here will use // Windows style - Add(0, 0, 0, wxLEFT, 9); + // Add(0, 0, 0, wxLEFT, 5); // Not sure what this was for but it unbalances the dialog if (m_buttonHelp) Add((wxWindow*)m_buttonHelp, 0, wxALIGN_CENTRE | wxLEFT | wxRIGHT, m_buttonHelp->ConvertDialogToPixels(wxSize(4, 0)).x); @@ -1773,7 +1773,7 @@ void wxStdDialogButtonSizer::Realize() } if (m_buttonCancel){ - Add((wxWindow*)m_buttonCancel, 0, wxALIGN_CENTRE | wxLEFT, m_buttonCancel->ConvertDialogToPixels(wxSize(4, 0)).x); + Add((wxWindow*)m_buttonCancel, 0, wxALIGN_CENTRE | wxLEFT | wxRIGHT, m_buttonCancel->ConvertDialogToPixels(wxSize(4, 0)).x); // Cancel or help should be default // m_buttonCancel->SetDefaultButton(); }