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:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user