Hide tooltips when style wxAUI_TB_NO_TOOLTIPS is provided

This commit is contained in:
Ian McInerney
2020-09-04 22:29:36 +01:00
parent e88f248e3a
commit 932b9ca62f

View File

@@ -2876,7 +2876,7 @@ void wxAuiToolBar::OnMotion(wxMouseEvent& evt)
// tooltips handling
wxAuiToolBarItem* packingHitItem;
packingHitItem = FindToolByPositionWithPacking(evt.GetX(), evt.GetY());
if (packingHitItem)
if ( !HasFlag(wxAUI_TB_NO_TOOLTIPS) && packingHitItem )
{
if (packingHitItem != m_tipItem)
{