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:
@@ -427,6 +427,7 @@ public:
|
|||||||
~wxAuiToolBar();
|
~wxAuiToolBar();
|
||||||
|
|
||||||
void SetWindowStyleFlag(long style);
|
void SetWindowStyleFlag(long style);
|
||||||
|
long GetWindowStyleFlag() const;
|
||||||
|
|
||||||
void SetArtProvider(wxAuiToolBarArt* art);
|
void SetArtProvider(wxAuiToolBarArt* art);
|
||||||
wxAuiToolBarArt* GetArtProvider() const;
|
wxAuiToolBarArt* GetArtProvider() const;
|
||||||
|
@@ -865,6 +865,10 @@ void wxAuiToolBar::SetWindowStyleFlag(long style)
|
|||||||
SetToolTextOrientation(wxAUI_TBTOOL_TEXT_BOTTOM);
|
SetToolTextOrientation(wxAUI_TBTOOL_TEXT_BOTTOM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long wxAuiToolBar::GetWindowStyleFlag() const
|
||||||
|
{
|
||||||
|
return m_style;
|
||||||
|
}
|
||||||
|
|
||||||
void wxAuiToolBar::SetArtProvider(wxAuiToolBarArt* art)
|
void wxAuiToolBar::SetArtProvider(wxAuiToolBarArt* art)
|
||||||
{
|
{
|
||||||
@@ -1339,6 +1343,8 @@ void wxAuiToolBar::SetGripperVisible(bool visible)
|
|||||||
m_gripper_visible = visible;
|
m_gripper_visible = visible;
|
||||||
if (visible)
|
if (visible)
|
||||||
m_style |= wxAUI_TB_GRIPPER;
|
m_style |= wxAUI_TB_GRIPPER;
|
||||||
|
else
|
||||||
|
m_style &= ~wxAUI_TB_GRIPPER;
|
||||||
Realize();
|
Realize();
|
||||||
Refresh(false);
|
Refresh(false);
|
||||||
}
|
}
|
||||||
@@ -1354,6 +1360,8 @@ void wxAuiToolBar::SetOverflowVisible(bool visible)
|
|||||||
m_overflow_visible = visible;
|
m_overflow_visible = visible;
|
||||||
if (visible)
|
if (visible)
|
||||||
m_style |= wxAUI_TB_OVERFLOW;
|
m_style |= wxAUI_TB_OVERFLOW;
|
||||||
|
else
|
||||||
|
m_style &= ~wxAUI_TB_OVERFLOW;
|
||||||
Refresh(false);
|
Refresh(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user