remove confusing wxDialog::ButtonSizerFlags and extract button styles properly in each generic dialog implementation instead (closes #9836)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,7 +107,11 @@ void wxGenericMessageDialog::DoCreateMsgdialog()
|
||||
int center_flag = wxEXPAND;
|
||||
if (m_dialogStyle & wxYES_NO)
|
||||
center_flag = wxALIGN_CENTRE;
|
||||
wxSizer *sizerBtn = CreateSeparatedButtonSizer(m_dialogStyle & ButtonSizerFlags);
|
||||
wxSizer *sizerBtn = CreateSeparatedButtonSizer
|
||||
(
|
||||
m_dialogStyle & (wxOK | wxCANCEL | wxYES_NO |
|
||||
wxNO_DEFAULT | wxCANCEL_DEFAULT)
|
||||
);
|
||||
if ( sizerBtn )
|
||||
topsizer->Add(sizerBtn, 0, center_flag | wxALL, 10 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user