X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/045bd076c541c2ee43483d94aeab1ecb031614ac..c1aa5517acff9ce039adcd6502db2e88cdd886c7:/samples/widgets/notebook.cpp diff --git a/samples/widgets/notebook.cpp b/samples/widgets/notebook.cpp index 0edbed19a6..0d15102e26 100644 --- a/samples/widgets/notebook.cpp +++ b/samples/widgets/notebook.cpp @@ -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; }