From e38c6b5fc716923a6c5fcb7f157ee50706c577c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 23 Jul 2004 18:06:03 +0000 Subject: [PATCH] wxUSE_STATLINE fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/samples/mmedia/mmboard.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/samples/mmedia/mmboard.cpp b/contrib/samples/mmedia/mmboard.cpp index b39015d01f..4ba796c958 100644 --- a/contrib/samples/mmedia/mmboard.cpp +++ b/contrib/samples/mmedia/mmboard.cpp @@ -297,13 +297,17 @@ MMBoardFrame::MMBoardFrame(const wxString& title, const wxPoint& pos, const wxSi wxBoxSizer *infoSizer = new wxBoxSizer(wxVERTICAL); m_fileType = new wxStaticText(infoPanel, wxID_ANY, wxEmptyString); +#if wxUSE_STATLINE wxStaticLine *line = new wxStaticLine(infoPanel, wxID_ANY); +#endif // wxUSE_STATLINE m_infoText = new wxStaticText(infoPanel, wxID_ANY, wxEmptyString); UpdateInfoText(); infoSizer->Add(m_fileType, 0, wxGROW | wxALL, 1); +#if wxUSE_STATLINE infoSizer->Add(line, 0, wxGROW | wxCENTRE, 20); +#endif // wxUSE_STATLINE infoSizer->Add(m_infoText, 0, wxGROW | wxALL, 1); infoPanel->SetSizer(infoSizer); @@ -332,11 +336,17 @@ MMBoardFrame::MMBoardFrame(const wxString& title, const wxPoint& pos, const wxSi // Top sizer m_sizer = new wxBoxSizer(wxVERTICAL); +#if wxUSE_STATLINE m_sizer->Add(new wxStaticLine(m_panel, wxID_ANY), 0, wxGROW | wxCENTRE, 0); +#endif // wxUSE_STATLINE m_sizer->Add(m_positionSlider, 0, wxCENTRE | wxGROW | wxALL, 2); +#if wxUSE_STATLINE m_sizer->Add(new wxStaticLine(m_panel, wxID_ANY), 0, wxGROW | wxCENTRE, 0); +#endif // wxUSE_STATLINE m_sizer->Add(buttonSizer, 0, wxALL, 0); +#if wxUSE_STATLINE m_sizer->Add(new wxStaticLine(m_panel, wxID_ANY), 0, wxGROW | wxCENTRE, 0); +#endif // wxUSE_STATLINE m_sizer->Add(infoPanel, 1, wxCENTRE | wxGROW, 0); m_panel->SetSizer(m_sizer);