#ifndef WX_PRECOMP
#include "wx/sizer.h"
-
#include "wx/statbmp.h"
#include "wx/stattext.h"
+ #include "wx/button.h"
#endif //WX_PRECOMP
#include "wx/aboutdlg.h"
s << _T('\n') << _("Developed by ") << AllAsString(GetDevelopers());
if ( HasDocWriters() )
- s << _T('\n') << ("Documentation by ") << AllAsString(GetDocWriters());
+ s << _T('\n') << _("Documentation by ") << AllAsString(GetDocWriters());
if ( HasArtists() )
- s << _T('\n') << ("Graphics art by ") << AllAsString(GetArtists());
+ s << _T('\n') << _("Graphics art by ") << AllAsString(GetArtists());
if ( HasTranslators() )
- s << _T('\n') << ("Translations by ") << AllAsString(GetTranslators());
+ s << _T('\n') << _("Translations by ") << AllAsString(GetTranslators());
return s;
}
wxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
sizerTop->Add(sizerIconAndText, wxSizerFlags(1).Expand().Border());
- sizerTop->Add(new wxButton(this, wxID_OK), wxSizerFlags().Right().Border());
+
+ 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;
+ }
+
SetSizerAndFit(sizerTop);
CentreOnScreen();
+
+ wxWindow *ok = FindWindow(wxID_OK);
+ if (ok) ok->SetFocus();
+
return true;
}