- sizer->Add( new wxStaticLine(this, -1), 0, wxGROW | wxLEFT | wxRIGHT, 5 );
- sizer->Add( CreateTextSizer(_("Life! version 2.0 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 *sizerBtns = CreateButtonSizer(wxOK);
+ if ( sizerBtns )
+ {
+ sizer->Add(sizerBtns, wxSizerFlags().Expand().Border());
+ }