]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/checkbox.cpp
reset the dirty flag before generating the event from SetValue() in case the text...
[wxWidgets.git] / samples / widgets / checkbox.cpp
index aeaf200853dee79d7bc3711defd2930c23a63f9f..5b41e219f36ef52ab564d6aaf86b8800fbe0f92b 100644 (file)
@@ -77,6 +77,7 @@ public:
     virtual ~CheckBoxWidgetsPage(){};
 
     virtual wxControl *GetWidget() const { return m_checkbox; }
+    virtual void RecreateWidget() { CreateCheckbox(); }
 
 protected:
     // event handlers
@@ -243,7 +244,7 @@ void CheckBoxWidgetsPage::CreateCheckbox()
 
     delete m_checkbox;
 
-    int flags = 0;
+    int flags = ms_defaultFlags;
     if ( m_chkRight->IsChecked() )
         flags |= wxALIGN_RIGHT;