ensure that wxToolBar has one of wxTB_TOP/LEFT/RIGHT/BOTTOM styles set, otherwise the latest toolbar positioning code breaks down
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -123,6 +123,15 @@ wxToolBarBase::wxToolBarBase()
|
||||
m_defaultHeight = 15;
|
||||
}
|
||||
|
||||
void wxToolBarBase::FixupStyle()
|
||||
{
|
||||
if ( !HasFlag(wxTB_TOP | wxTB_LEFT | wxTB_RIGHT | wxTB_BOTTOM) )
|
||||
{
|
||||
// this is the default
|
||||
m_windowStyle |= wxTB_TOP;
|
||||
}
|
||||
}
|
||||
|
||||
wxToolBarToolBase *wxToolBarBase::DoAddTool(int id,
|
||||
const wxString& label,
|
||||
const wxBitmap& bitmap,
|
||||
|
Reference in New Issue
Block a user