]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/layout/layout.cpp
wx needs imported for the error code
[wxWidgets.git] / samples / layout / layout.cpp
index 1ee69f89e513cb3e7d90626750849dc153f5277a..58ce14a866782dfcbbf1767e7b812dfe1e4b067a 100644 (file)
@@ -147,6 +147,7 @@ MyFrame::MyFrame()
     topsizer->Add(gridsizer, 1, wxGROW | wxALL, 10);
 
 
+#if wxUSE_STATLINE
   // 3) middle: create wxStaticLine with minimum size (3x3)
   topsizer->Add(
      new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize(3,3), wxHORIZONTAL),
@@ -154,6 +155,7 @@ MyFrame::MyFrame()
      wxEXPAND |   // make horizontally stretchable
      wxALL,       //   and make border all around
      5 );         // set border width to 5
+#endif // wxUSE_STATLINE
 
 
   // 4) bottom: create two centred wxButtons