Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon Groups Icon Layout.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon Groups Icon Layout.

 Post Reply Post Reply
Author
Message
gibbo View Drop Down
Groupie
Groupie
Avatar

Joined: 04 January 2007
Location: United Kingdom
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibbo Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon Groups Icon Layout.
    Posted: 08 January 2007 at 4:46pm

Hi,

Is there any way to set the width of a CXTPRibbonGroup, so that we can group the buttons within the group.  At the moment they seem to be positioned top to bottom, then wrap around to the top.
 
Is it possible to have them wrap left to right?
 
Thanks
 
Gibbo
Back to Top
artsd View Drop Down
Groupie
Groupie


Joined: 07 January 2007
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote artsd Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2007 at 9:53am
I have a similar request.
 
In this example I have 4 small icons. When the 4 button was added, it wrapped to column 2. I would like to make the 3rd button be the start of column 2 (so the layout will be 2x2).
 
Back to Top
dandan View Drop Down
Newbie
Newbie
Avatar

Joined: 05 January 2007
Location: Austria
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote dandan Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2007 at 6:41am
hi, that's easy :-)
 
just use SetBeginGroup(TRUE) to start a new group at this item and

SetControlsGrouping(TRUE) to group them horizontally


...

pGroupMonate->SetControlsGrouping(TRUE);

...

pGroupMonate->Add(xtpControlButton, ID_MONAT_5);

pGroupMonate->Add(xtpControlButton, ID_MONAT_6);

pGroupMonate->Add(xtpControlButton, ID_MONAT_7)->SetBeginGroup(TRUE);

..
 
then you get something like:
 
i think that's what you're looked for..
Back to Top
artsd View Drop Down
Groupie
Groupie


Joined: 07 January 2007
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote artsd Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2007 at 10:13am
Thanks, I did your suggestion and it almost works. The only little problem is the space between the 2 lines. It would be nice if the space was gone.
 
Here is the code:
 
CXTPRibbonGroup* pGroupViewListPane = pTabView->AddGroup("List Pane");
pGroupViewListPane->SetControlsGrouping(TRUE);
CXTPControl* pTmpControl = NULL;
pGroupViewListPane->Add(xtpControlButton, ID_VIEW_LARGEICON);
pGroupViewListPane->Add(xtpControlButton, ID_VIEW_SMALLICON);
pTmpControl = pGroupViewListPane->Add(xtpControlButton, ID_VIEW_LIST);
pTmpControl->SetBeginGroup(TRUE);
pGroupViewListPane->Add(xtpControlButton, ID_VIEW_DETAILS);

 
 
Back to Top
dandan View Drop Down
Newbie
Newbie
Avatar

Joined: 05 January 2007
Location: Austria
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote dandan Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2007 at 9:57am
have the same problem
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.172 seconds.