Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Ribbon guidelines
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon guidelines

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon guidelines
    Posted: 02 February 2007 at 6:28pm

Hi!

How do you design a ribbon for multiple documents? I have been pondering on this for quite some time now.
 
All ribbon applications usually only have one type of document. Your samples and MS Word/Excel/Powerpoint. One ribbon is always enough. Now, what if you wanted to be able to edit multiple types of documents in your ribbon application? In a regular menu/toolbar application you would simply show/hide menu items when a certain document is about to be edited.
 
Should you use the same principle for ribbons? That is, handling XTP_ID_RIBBONCONTROLTAB in each view and show/hide certain tabs?
 
Example:
HOME | EDIT | RESOURCE | TEXT
 
If I select a resource view, the Text tab is not used. Similarly, if I select a text view the Resource tab is not used.
 
What are your guidelines? Thanks!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2007 at 1:39am
Hello,
yes think best solution is to show/hide tabs for some views.
See Samples\Ribbon\RibbonMDISample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2007 at 9:15am
Yes, that is a solution, but sometimes you need some commands in all views. In that case it is convenient if there is one common group available at all times. Hence, I feel it can be a good idea to show/hide groups instead.
 
Anyways, I found this document:
 
It contains some useful information, such as:
 

If you must add a tab, make sure:

1.      You do not logically fall under one of the existing tabs.

2.      You have sufficient content to fill an entire tab. If you do not, a group on the add-ins tab is the preferred alternative.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2007 at 1:39am
Hi,
There is CXTPRibbonGroup::SetVisible method. You can show/hide groups...
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2007 at 4:01pm
Yes, but Microsoft seem to *not* recommend showing/hiding ribbon groups.
 
Anyways, thanks for your reply.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.