Show the help string of the ribbon item currently being hovered over in a
tooltip.
Closes #11879.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70175
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDataViewCtrl (Andrew Xu).
- Fix item alignment in icon view in the generic wxListCtrl.
- Support font-family/style, text-decoration in wxHtmlWindow (Blake Oleander).
wxDataViewCtrl (Andrew Xu).
- Fix item alignment in icon view in the generic wxListCtrl.
- Support font-family/style, text-decoration in wxHtmlWindow (Blake Oleander).
+- Show ribbon tools help strings in tooltips (John Roberts).
+ if(new_hovered == NULL && GetToolTip())
+ {
+ UnsetToolTip();
+ }
+
if(new_hovered != m_hovered_button || (m_hovered_button != NULL &&
new_hovered_state != m_hovered_button->base->state))
{
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(m_hovered_button != NULL)
{
m_hovered_button->base->state = new_hovered_state;
+ SetToolTip(m_hovered_button->base->help_string);
+ if(new_hover)
+ {
+ SetToolTip(new_hover->help_string);
+ }
+ else if(GetToolTip())
+ {
+ UnsetToolTip();
+ }
+
if(new_hover != m_hover_tool)
{
if(m_hover_tool)
if(new_hover != m_hover_tool)
{
if(m_hover_tool)