From 27dc5184e5a8d16d4501398a630345f9fa0edb8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 23 Jul 2004 08:51:53 +0000 Subject: [PATCH] wxUSE_STATLINE fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- demos/life/dialogs.cpp | 8 ++++++++ demos/life/life.cpp | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/demos/life/dialogs.cpp b/demos/life/dialogs.cpp index 942acc2093..7712e995a5 100644 --- a/demos/life/dialogs.cpp +++ b/demos/life/dialogs.cpp @@ -115,9 +115,13 @@ LifeSamplesDialog::LifeSamplesDialog(wxWindow *parent) wxBoxSizer *sizer3 = new wxBoxSizer( wxVERTICAL ); sizer3->Add( CreateTextSizer(_("Select one configuration")), 0, wxALL, 10 ); +#if wxUSE_STATLINE sizer3->Add( new wxStaticLine(this, wxID_ANY), 0, wxGROW | wxLEFT | wxRIGHT, 10 ); +#endif // wxUSE_STATLINE sizer3->Add( sizer2, 1, wxGROW | wxALL, 5 ); +#if wxUSE_STATLINE sizer3->Add( new wxStaticLine(this, wxID_ANY), 0, wxGROW | wxLEFT | wxRIGHT, 10 ); +#endif // wxUSE_STATLINE sizer3->Add( CreateButtonSizer(wxOK | wxCANCEL), 0, wxCENTRE | wxALL, 10 ); // activate @@ -173,14 +177,18 @@ LifeAboutDialog::LifeAboutDialog(wxWindow *parent) // layout components wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL ); sizer->Add( sbmp, 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\ \n\n\ Portions of the code are based in XLife;\n\ XLife is (c) 1989 by Jon Bennett et al.")), 0, wxCENTRE | wxALL, 20 ); +#if wxUSE_STATLINE sizer->Add( new wxStaticLine(this, wxID_ANY), 0, wxGROW | wxLEFT | wxRIGHT, 5 ); +#endif // wxUSE_STATLINE sizer->Add( CreateButtonSizer(wxOK), 0, wxCENTRE | wxALL, 10 ); // activate diff --git a/demos/life/life.cpp b/demos/life/life.cpp index 2ccd952734..2d6950a106 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -306,9 +306,13 @@ LifeFrame::LifeFrame() : wxFrame( (wxFrame *) NULL, wxID_ANY, wxBoxSizer *sizer2 = new wxBoxSizer(wxVERTICAL); wxBoxSizer *sizer3 = new wxBoxSizer(wxVERTICAL); +#if wxUSE_STATLINE sizer1->Add( new wxStaticLine(panel1, wxID_ANY), 0, wxGROW ); +#endif // wxUSE_STATLINE sizer1->Add( m_canvas, 1, wxGROW | wxALL, 2 ); +#if wxUSE_STATLINE sizer1->Add( new wxStaticLine(panel1, wxID_ANY), 0, wxGROW ); +#endif // wxUSE_STATLINE panel1->SetSizer( sizer1 ); sizer1->Fit( panel1 ); -- 2.45.2