X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff4cb9160e9a4e5e4881f5c341660cec0d861ea4..11527fc9f0e2aa8bea57c3c2ea361823991667b8:/src/ribbon/buttonbar.cpp diff --git a/src/ribbon/buttonbar.cpp b/src/ribbon/buttonbar.cpp index 3e73865a01..ad44278f14 100644 --- a/src/ribbon/buttonbar.cpp +++ b/src/ribbon/buttonbar.cpp @@ -977,10 +977,12 @@ void wxRibbonButtonBar::OnMouseMove(wxMouseEvent& evt) } } +#if wxUSE_TOOLTIPS if(new_hovered == NULL && GetToolTip()) { UnsetToolTip(); } +#endif if(new_hovered != m_hovered_button || (m_hovered_button != NULL && new_hovered_state != m_hovered_button->base->state)) @@ -993,7 +995,9 @@ void wxRibbonButtonBar::OnMouseMove(wxMouseEvent& evt) if(m_hovered_button != NULL) { m_hovered_button->base->state = new_hovered_state; +#if wxUSE_TOOLTIPS SetToolTip(m_hovered_button->base->help_string); +#endif } Refresh(false); }