Opened 8 years ago

Closed 8 years ago

#14527 closed enhancement (fixed)

Ribbon bar - Added the ability to highlight tabs

Reported by: wxBen Owned by:
Priority: normal Milestone:
Component: GUI-all Version: stable-latest
Keywords: ribbon bar highlight page Cc:
Blocked By: Blocking:
Patch: yes

Description

Here is the situation:

Your application may have a ribbon bar with several pages. Say the user opens a view and you unhide a tab because of it, so as to show the user functionality relevant to the view they just opened. However, the user will not notice the new tab, because it looks like just the others.

So what you can do now, is highlight a tab, to make it stand out a bit more so the user is more likely to notice it. Microsoft tends to highlight tabs by putting the label on the title bar.

Existing applications are unaffected and will compile and behave as before.
The new functionality is demonstrated in the ribbon sample application.

Please feel free to tweak slightly as you see fit.

Attachments (2)

RibbonHighlighPage.patch download (7.2 KB) - added by wxBen 8 years ago.
RibbonHighlight.patch
RibbonHighlighPage2.patch download (8.0 KB) - added by wxBen 8 years ago.
RibbonHighlighPage2.patch - Use this one only

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by wxBen

RibbonHighlight.patch

comment:1 Changed 8 years ago by vadz

The patch seems to be missing the changes to the header, could you please add them?

I don't really have any objections to this patch although I do wonder why couldn't the new page just be made current instead. But if people find this functionality useful, why not.

Also, a note about the naming: we should use IsPageHighlighted(), i.e. add "ed" suffix. I'm also somewhat uncomfortable about UnHighlight() as I don't think such word exists. Perhaps we could have AddPageHighlight() and RemovePageHighlight() instead? Or maybe you could just remove UnHighlight() and people would use the function with bool argument.

comment:2 Changed 8 years ago by wxBen

I have renamed the methods as you suggested (I agree), and attached a new patch which also includes the missing header file (my apologies for that).

Yes, you can just activate a page, but there may be multiple pages that need to be highlighted, and users may not want to you flip the active page on them in some cases.

Changed 8 years ago by wxBen

RibbonHighlighPage2.patch - Use this one only

comment:3 Changed 8 years ago by wxBen

Thank you kindly, vadz!

comment:4 Changed 8 years ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [72347]) Add page highlighting to wxRibbonBar.

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

Closes #14527.

Note: See TracTickets for help on using tickets.