]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/life/life.cpp
Corrected some things in, and some thing revealed by
[wxWidgets.git] / samples / life / life.cpp
index 89c513f840ec2ffc325f86e45abaae9368d0e4dd..b573c09f7feba35ccff49392000e91d4d651122c 100644 (file)
@@ -236,8 +236,8 @@ enum
     ID_CLEAR,
     ID_START,
     ID_STOP,
     ID_CLEAR,
     ID_START,
     ID_STOP,
-    ID_ABOUT,
     ID_EXIT,
     ID_EXIT,
+    ID_ABOUT,
 
     // slider
     ID_SLIDER
 
     // slider
     ID_SLIDER
@@ -351,7 +351,7 @@ LifeFrame::LifeFrame() : wxFrame((wxFrame *)0, -1, _("Life!"), wxPoint(50, 50))
 
     // slider
     wxSlider *slider = new wxSlider(panel, ID_SLIDER, 5, 1, 10,
 
     // slider
     wxSlider *slider = new wxSlider(panel, ID_SLIDER, 5, 1, 10,
-        wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_AUTOTICKS);
+        wxDefaultPosition, wxSize(150,-1), wxSL_HORIZONTAL | wxSL_AUTOTICKS);
 
     // component layout
     wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
 
     // component layout
     wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
@@ -455,6 +455,7 @@ void LifeFrame::OnNewGame()
             m_canvas->Reset();
             m_tics = 0;
             UpdateInfoText();
             m_canvas->Reset();
             m_tics = 0;
             UpdateInfoText();
+            m_canvas->Refresh();
         }
         else
         {
         }
         else
         {