]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/notebook.cpp
bakefile-generated makefiles for the sample
[wxWidgets.git] / samples / widgets / notebook.cpp
index 0edbed19a611534670cddf7b685d393c93b076af..0d15102e268120dee6ff57c5388205314ee8edb1 100644 (file)
@@ -90,6 +90,7 @@ public:
     virtual ~NotebookWidgetsPage();
 
     virtual wxControl *GetWidget() const { return m_notebook; }
+    virtual void RecreateWidget() { CreateNotebook(); }
 
 protected:
     // event handlers
@@ -344,7 +345,7 @@ void NotebookWidgetsPage::CreateImageList()
 
 void NotebookWidgetsPage::CreateNotebook()
 {
-    int flags;
+    int flags = ms_defaultFlags;
     switch ( m_radioOrient->GetSelection() )
     {
         default:
@@ -352,19 +353,19 @@ void NotebookWidgetsPage::CreateNotebook()
             // fall through
 
         case Orient_Top:
-            flags = wxBK_TOP;
+            flags |= wxBK_TOP;
             break;
 
         case Orient_Bottom:
-            flags = wxBK_BOTTOM;
+            flags |= wxBK_BOTTOM;
             break;
 
         case Orient_Left:
-            flags = wxBK_LEFT;
+            flags |= wxBK_LEFT;
             break;
 
         case Orient_Right:
-            flags = wxBK_RIGHT;
+            flags |= wxBK_RIGHT;
             break;
     }