fix incorrect application of styles (#10171)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2009-03-25 13:41:38 +00:00
parent fffa47817f
commit 5c892e9a01
2 changed files with 9 additions and 0 deletions

View File

@@ -427,6 +427,7 @@ public:
~wxAuiToolBar();
void SetWindowStyleFlag(long style);
long GetWindowStyleFlag() const;
void SetArtProvider(wxAuiToolBarArt* art);
wxAuiToolBarArt* GetArtProvider() const;

View File

@@ -865,6 +865,10 @@ void wxAuiToolBar::SetWindowStyleFlag(long style)
SetToolTextOrientation(wxAUI_TBTOOL_TEXT_BOTTOM);
}
long wxAuiToolBar::GetWindowStyleFlag() const
{
return m_style;
}
void wxAuiToolBar::SetArtProvider(wxAuiToolBarArt* art)
{
@@ -1339,6 +1343,8 @@ void wxAuiToolBar::SetGripperVisible(bool visible)
m_gripper_visible = visible;
if (visible)
m_style |= wxAUI_TB_GRIPPER;
else
m_style &= ~wxAUI_TB_GRIPPER;
Realize();
Refresh(false);
}
@@ -1354,6 +1360,8 @@ void wxAuiToolBar::SetOverflowVisible(bool visible)
m_overflow_visible = visible;
if (visible)
m_style |= wxAUI_TB_OVERFLOW;
else
m_style &= ~wxAUI_TB_OVERFLOW;
Refresh(false);
}