- sizer->Add( new wxStaticLine(this, -1), 0, wxGROW | wxLEFT | wxRIGHT, 5 );
- sizer->Add( CreateTextSizer(_("Life! version 2.1 for wxWindows\n\n"
- "(c) 2000 Guillermo Rodriguez Garcia\n\n"
- "<guille@iies.es>\n\n"
- "Portions of the code are based in XLife;\n"
- "XLife is (c) 1989 by Jon Bennett et al.")),
- 0, wxCENTRE | wxALL, 20 );
- sizer->Add( new wxStaticLine(this, -1), 0, wxGROW | wxLEFT | wxRIGHT, 5 );
- sizer->Add( CreateButtonSizer(wxOK), 0, wxCENTRE | wxALL, 10 );
+#if wxUSE_STATLINE
+ sizer->Add( new wxStaticLine(this, wxID_ANY), 0, wxGROW | wxLEFT | wxRIGHT, 5 );
+#endif // wxUSE_STATLINE
+ sizer->Add( CreateTextSizer(_("Life! version 2.2 for wxWidgets\n\n\
+(c) 2000 Guillermo Rodriguez Garcia\n\n\
+<guille@iies.es>\n\n\
+Portions of the code are based in XLife;\n\
+XLife is (c) 1989 by Jon Bennett et al.")),
+ 0, wxCENTRE | wxRIGHT|wxLEFT|wxTOP, 20 );
+
+ // buttons if any
+ wxSizer *buttonSizer = CreateButtonSizer( wxOK , true, 10 );
+ if(buttonSizer->GetChildren().GetCount() > 0 )
+ {
+ sizer->Add( buttonSizer, 0, wxEXPAND | wxALL, 10 );
+ }
+ else
+ {
+ sizer->AddSpacer( 20 );
+ delete buttonSizer;
+ }