Add margin to the right of the message in wxGenericProgressDialog.

For some reason the border was used only on the left side but not on the right
one, resulting in the ugly looking label flush to the right dialog border if
it was long enough.

Closes #16094.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-03-18 14:20:31 +00:00
parent b0cf46ef31
commit a1ddc1fd60

View File

@@ -201,7 +201,7 @@ bool wxGenericProgressDialog::Create( const wxString& title,
wxSizer * const sizerTop = new wxBoxSizer(wxVERTICAL); wxSizer * const sizerTop = new wxBoxSizer(wxVERTICAL);
m_msg = new wxStaticText(this, wxID_ANY, message); m_msg = new wxStaticText(this, wxID_ANY, message);
sizerTop->Add(m_msg, 0, wxLEFT | wxTOP, 2*LAYOUT_MARGIN); sizerTop->Add(m_msg, 0, wxLEFT | wxRIGHT | wxTOP, 2*LAYOUT_MARGIN);
int gauge_style = wxGA_HORIZONTAL; int gauge_style = wxGA_HORIZONTAL;
if ( style & wxPD_SMOOTH ) if ( style & wxPD_SMOOTH )