added a menu allowing to change the border style used by the widget

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-04-16 23:39:11 +00:00
parent 6493aacaeb
commit 1301e2289f
13 changed files with 89 additions and 17 deletions

View 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;
}