Follow CreateButtonSizer interface change.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -129,15 +129,10 @@ LifeSamplesDialog::LifeSamplesDialog(wxWindow *parent)
|
|||||||
#endif // wxUSE_STATLINE
|
#endif // wxUSE_STATLINE
|
||||||
sizer3->Add( sizer2, 1, wxGROW | wxALL, 5 );
|
sizer3->Add( sizer2, 1, wxGROW | wxALL, 5 );
|
||||||
|
|
||||||
wxSizer *buttonSizer = CreateButtonSizer( wxOK|wxCANCEL , true, 10 );
|
wxSizer *sizerBtns = CreateButtonSizer(wxOK|wxCANCEL);
|
||||||
if(buttonSizer->GetChildren().GetCount() > 0 )
|
if ( sizerBtns )
|
||||||
{
|
{
|
||||||
sizer3->Add( buttonSizer, 0, wxEXPAND | wxALL, 10 );
|
sizer3->Add(sizerBtns, wxSizerFlags().Expand().Border());
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
sizer3->AddSpacer( 10 );
|
|
||||||
delete buttonSizer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// activate
|
// activate
|
||||||
@@ -202,15 +197,10 @@ XLife is (c) 1989 by Jon Bennett et al.")),
|
|||||||
0, wxCENTRE | wxRIGHT|wxLEFT|wxTOP, 20 );
|
0, wxCENTRE | wxRIGHT|wxLEFT|wxTOP, 20 );
|
||||||
|
|
||||||
// buttons if any
|
// buttons if any
|
||||||
wxSizer *buttonSizer = CreateButtonSizer( wxOK , true, 10 );
|
wxSizer *sizerBtns = CreateButtonSizer(wxOK);
|
||||||
if(buttonSizer->GetChildren().GetCount() > 0 )
|
if ( sizerBtns )
|
||||||
{
|
{
|
||||||
sizer->Add( buttonSizer, 0, wxEXPAND | wxALL, 10 );
|
sizer->Add(sizerBtns, wxSizerFlags().Expand().Border());
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
sizer->AddSpacer( 20 );
|
|
||||||
delete buttonSizer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// activate
|
// activate
|
||||||
|
Reference in New Issue
Block a user