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

@@ -147,6 +147,10 @@ public:
virtual bool IsSizingContinuous() const;
virtual wxSize GetMinSize() const;
void SetShowToolTipsForDisabled(bool show);
bool GetShowToolTipsForDisabled() const;
protected:
friend class wxRibbonButtonBarEvent;
virtual wxSize DoGetBestSize() const;
@@ -186,6 +190,7 @@ protected:
int m_current_layout;
bool m_layouts_valid;
bool m_lock_active_state;
bool m_show_tooltips_for_disabled;
#ifndef SWIG
DECLARE_CLASS(wxRibbonButtonBar)