Print Page | Close Window

How to set GroupRows of RibbonBar

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=8218
Printed Date: 02 March 2025 at 4:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set GroupRows of RibbonBar
Posted By: czlai
Subject: How to set GroupRows of RibbonBar
Date Posted: 29 September 2007 at 2:56am
After CXTPRibbonGroup::SetControlsGrouping(), I add saveral controls into group. But no matter how many controls added, the rows of the group is 2.
 
How I can make the rows increase to 3 ?
 
Thanks



Replies:
Posted By: czlai
Date Posted: 29 September 2007 at 3:45am
Other Questions ....
 
How to remove entire group from the tab ?
 
 


Posted By: czlai
Date Posted: 02 October 2007 at 4:43am

No Result ?



Posted By: Oleg
Date Posted: 02 October 2007 at 5:51am
Hi,
 
1. Think you didn't add separators to break controls.
2. pTab->GetGroups()->Remove(nIndex);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: czlai
Date Posted: 02 October 2007 at 9:30pm
I did add separators with SetBeginGroup(), the codes as following...
 
  CXTPRibbonTab* pTabDesigner = m_pRibbonBar->InsertTab(nTabIndex, ID_TAB_DESIGNER);
  CXTPRibbonGroup* pGroup=pTabDesigner->AddGroup("Window");
  pGroup->SetControlsGrouping();
  CXTPControl* pControl=pGroup->Add(xtpControlButton, ID_MENU_CREATE_WINDOW);
  pControl=pGroup->Add(xtpControlButton, ID_MENU_EDIT_WINDOW);
  pControl->SetBeginGroup(TRUE);
  pControl=pGroup->Add(xtpControlButton, ID_MENU_EDIT_MENU);
  pControl->SetBeginGroup(TRUE);
  pControl=pGroup->Add(xtpControlButton, ID_MENU_OPEN_SYSTEM_COMPONENTS);
  pControl->SetBeginGroup(TRUE);
 
I got 2 rows buttons as http://photo.xuite.net/czlai/2033707 - http://photo.xuite.net/czlai/2033707  
How can I make 3 or 4 rows of buttons in group ?
 
Thanks for answering !


Posted By: czlai
Date Posted: 10 October 2007 at 10:09pm
Help Please ....



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