Add wxUSE_TOOLTIPS tests after the changes of r70175.
Closes #13827.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70262
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
}
+#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))
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);
}
}
}
+#if wxUSE_TOOLTIPS
if(new_hover)
{
SetToolTip(new_hover->help_string);
{
UnsetToolTip();
}
+#endif
if(new_hover != m_hover_tool)
{