Print Page | Close Window

Ribbon Groups Icon Layout.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6035
Printed Date: 04 March 2025 at 2:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon Groups Icon Layout.
Posted By: gibbo
Subject: Ribbon Groups Icon Layout.
Date 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



Replies:
Posted By: artsd
Date 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).
 


Posted By: dandan
Date 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..


Posted By: artsd
Date 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);

 
 


Posted By: dandan
Date Posted: 12 January 2007 at 9:57am
have the same problem



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net