+
+ int defBorder = wxSizerFlags().Border().GetBorderInPixels();
+ wxSizer *buttonSizer = CreateButtonSizer( wxOK , false, defBorder );
+ if(buttonSizer->GetChildren().GetCount() > 0 )
+ {
+ sizerTop->Add( buttonSizer, 0, wxEXPAND | wxALL, defBorder );
+ }
+ else
+ {
+ sizerTop->AddSpacer( defBorder );
+ delete buttonSizer;
+ }
+