Add page highlighting to wxRibbonBar.

Allow visually highlighting a page to make it more noticeable to the user.

Closes #14527.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-08-15 23:34:36 +00:00
parent f2f0e4bea1
commit 70f86dedfd
7 changed files with 107 additions and 4 deletions

View File

@@ -284,6 +284,35 @@ public:
*/
void HidePage(size_t page);
/**
Indicates whether a tab is currently highlighted.
@see AddPageHighlight()
@since 2.9.5
*/
bool IsPageHighlighted(size_t page) const;
/**
Highlight the specified tab.
Highlighted tabs have a colour between that of the active tab
and a tab over which the mouse is hovering. This can be used
to make a tab (usually temporarily) more noticeable to the user.
@since 2.9.5
*/
void AddPageHighlight(size_t page, bool highlight = true);
/**
Changes a tab to not be highlighted.
@see AddPageHighlight()
@since 2.9.5
*/
void RemovePageHighlight(size_t page);
/**
Shows or hides the panel area of the ribbon bar.