diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index 9cbdca770e..ec6e7e924f 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -116,7 +116,7 @@ void wxGenericMessageDialog::DoCreateMsgdialog() if (is_pda) topsizer->Add( icon, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 ); else - icon_text->Add( icon, 0, wxCENTER ); + icon_text->Add(icon, wxSizerFlags().Top().Border(wxRIGHT, 20)); } #endif // wxUSE_STATBMP diff --git a/src/generic/richmsgdlgg.cpp b/src/generic/richmsgdlgg.cpp index 06b226d4f6..c656332a68 100644 --- a/src/generic/richmsgdlgg.cpp +++ b/src/generic/richmsgdlgg.cpp @@ -53,15 +53,10 @@ void wxGenericRichMessageDialog::AddMessageDialogCheckBox(wxSizer *sizer) { if ( !m_checkBoxText.empty() ) { - wxSizer *sizerCheckBox = new wxBoxSizer( wxHORIZONTAL ); + m_checkBox = new wxCheckBox(this, wxID_ANY, m_checkBoxText); + m_checkBox->SetValue(m_checkBoxValue); - m_checkBox = new wxCheckBox( this, - wxID_ANY, - m_checkBoxText ); - m_checkBox->SetValue( m_checkBoxValue ); - sizerCheckBox->Add( m_checkBox, 0, wxBOTTOM | wxALIGN_LEFT ); - - sizer->Add( sizerCheckBox, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 ); + sizer->Add(m_checkBox, wxSizerFlags().Left().Border(wxLEFT|wxTOP, 10)); } }