fix incorrect application of styles (#10171)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5c8640d093
commit
e7b8af652f
@ -427,6 +427,7 @@ public:
|
||||
virtual ~wxAuiToolBar();
|
||||
|
||||
void SetWindowStyleFlag(long style);
|
||||
long GetWindowStyleFlag() const;
|
||||
|
||||
void SetArtProvider(wxAuiToolBarArt* art);
|
||||
wxAuiToolBarArt* GetArtProvider() const;
|
||||
|
@ -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)
|
||||
{
|
||||
@ -1344,6 +1348,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);
|
||||
}
|
||||
@ -1359,6 +1365,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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user