use wxSizerFlags and updated CreateButtonSizer() in all generic dialogs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-09 21:08:45 +00:00
parent 1027cedd47
commit bd9f3519cf
10 changed files with 106 additions and 182 deletions

View File

@@ -119,15 +119,11 @@ void wxPropertySheetDialog::CreateButtons(int flags)
#endif
wxSizer *buttonSizer = CreateButtonSizer( flags & ButtonSizerFlags );
if(buttonSizer->GetChildren().GetCount() > 0 )
if( buttonSizer )
{
m_innerSizer->Add( buttonSizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT|wxRIGHT, 2);
m_innerSizer->AddSpacer(2);
}
else
{
delete buttonSizer;
}
#ifdef __POCKETPC__
// restore system option