]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/life/life.cpp
Corrected drag effect for tree control.
[wxWidgets.git] / demos / life / life.cpp
index 2ccd9527341e8827ebd29d068ea786565efd80db..c08bb17c4f172fc33d76d6ab704d4e31f7954afe 100644 (file)
@@ -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 );
 
@@ -1021,7 +1025,7 @@ void LifeCanvas::OnSize(wxSizeEvent& event)
 
 void LifeCanvas::OnScroll(wxScrollWinEvent& event)
 {
-    WXTYPE type = event.GetEventType();
+    WXTYPE type = (WXTYPE)event.GetEventType();
     int pos     = event.GetPosition();
     int orient  = event.GetOrientation();