From: <vo...@us...> - 2012-06-18 12:38:46
|
Revision: 2629 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=2629&view=rev Author: vomikan Date: 2012-06-18 12:38:37 +0000 (Mon, 18 Jun 2012) Log Message: ----------- flags Modified Paths: -------------- trunk/mmex/src/aboutdialog.cpp Modified: trunk/mmex/src/aboutdialog.cpp =================================================================== --- trunk/mmex/src/aboutdialog.cpp 2012-06-17 18:22:19 UTC (rev 2628) +++ trunk/mmex/src/aboutdialog.cpp 2012-06-18 12:38:37 UTC (rev 2629) @@ -74,28 +74,31 @@ void mmAboutDialog::CreateControls() { + wxSizerFlags flags; + flags.Align(wxALIGN_CENTER).Border(wxALL, 5); + wxBoxSizer* itemBoxSizer = new wxBoxSizer(wxVERTICAL); this->SetSizer(itemBoxSizer); wxBitmap itemStaticBitmap3Bitmap(money_xpm); - wxStaticBitmap* itemStaticBitmap3 = 0; + wxStaticBitmap* itemStaticBitmap3; itemStaticBitmap3 = new wxStaticBitmap(this, wxID_STATIC, itemStaticBitmap3Bitmap); - itemBoxSizer->Add(itemStaticBitmap3, 0, wxALIGN_CENTER|wxTOP, 5); + itemBoxSizer->Add(itemStaticBitmap3, flags); wxStaticText* versionStaticText = new wxStaticText( this, wxID_STATIC, wxString(_("Version: ")) + mmex::getProgramVersion()); int font_size = this->GetFont().GetPointSize() + 2; versionStaticText->SetFont(wxFont(font_size, wxSWISS, wxNORMAL, wxBOLD, FALSE, wxGetEmptyString())); - itemBoxSizer->Add(versionStaticText, 0, wxALIGN_CENTER_HORIZONTAL|wxBOTTOM, 5); + itemBoxSizer->Add(versionStaticText, flags); wxStaticText* itemStaticText88 = new wxStaticText(this, wxID_STATIC, mmex::getProgramCopyright()); wxStaticText* itemStaticText7 = new wxStaticText(this, wxID_STATIC, mmex::getProgramDescription()); - itemBoxSizer->Add(itemStaticText7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); + itemBoxSizer->Add(itemStaticText7, flags); //Read data from file wxString filePath = mmex::getPathDoc(mmex::F_CONTRIB); @@ -168,13 +171,13 @@ sponsors_sizer->Add(sponsors_text, 1, wxEXPAND); } - itemBoxSizer->Add(about_notebook, 0, wxALIGN_CENTER|wxALL, 15); + itemBoxSizer->Add(about_notebook, flags); about_notebook->Layout(); - itemBoxSizer->Add(itemStaticText88, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxADJUST_MINSIZE, 5); + itemBoxSizer->Add(itemStaticText88, flags); - wxButton* itemButton19 = new wxButton(this, wxID_OK); - itemButton19->SetDefault(); - itemButton19->SetFocus(); - itemBoxSizer->Add(itemButton19, 0, wxALIGN_CENTER|wxALL, 10); + wxButton* button_OK = new wxButton(this, wxID_OK); + button_OK->SetDefault(); + button_OK->SetFocus(); + itemBoxSizer->Add(button_OK, flags); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |