Optionally allow showing tooltips for disabled ribbon buttons.

Add wxRibbonButtonBar::SetShowToolTipsForDisabled() to allow enabling the
tooltips even for the disabled buttons.

Closes #14820.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-11-14 00:16:16 +00:00
parent 4d8209b907
commit 40df8a51f2
4 changed files with 47 additions and 4 deletions

View File

@@ -485,6 +485,25 @@ public:
*/
virtual wxRibbonButtonBarButtonBase *GetHoveredItem() const;
/**
Indicates whether tooltips are shown for disabled buttons.
By default they are not shown.
@since 2.9.5
*/
void SetShowToolTipsForDisabled(bool show);
/**
Sets whether tooltips should be shown for disabled buttons or not.
You may wish to show it to explain why a button is disabled or
what it normally does when enabled.
@since 2.9.5
*/
bool GetShowToolTipsForDisabled() const;
};
/**