From cbf311dd178ed36045f40bb6f485c100a5b28700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 22 Jul 2004 19:59:31 +0000 Subject: [PATCH] wxUSE_STATLINE fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/propsize/propsize.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/samples/propsize/propsize.cpp b/samples/propsize/propsize.cpp index 17680e7f07..c217cba597 100644 --- a/samples/propsize/propsize.cpp +++ b/samples/propsize/propsize.cpp @@ -164,9 +164,14 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) SetStatusText(_T("Resize the frame to see how controls react")); #endif // wxUSE_STATUSBAR -#define AddLine(orient) \ - Add( new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize(2,2), orient), \ - 0, wxEXPAND) +#if wxUSE_STATLINE + #define AddLine(orient) \ + Add( new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize(2,2), orient), \ + 0, wxEXPAND) +#else + #define AddLine(orient) \ + Add( 2, 2) +#endif // wxUSE_STATLINE #define AddButton(label,align) Add( \ new wxButton( this, wxID_ANY, label, wxDefaultPosition, wxSize(100,50)), \