![]() |
How to set GroupRows of RibbonBar |
Post Reply ![]() |
Author | |
czlai ![]() Groupie ![]() ![]() Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
czlai ![]() Groupie ![]() ![]() Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
Other Questions ....
How to remove entire group from the tab ?
|
|
![]() |
|
czlai ![]() Groupie ![]() ![]() Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
No Result ? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
1. Think you didn't add separators to break controls.
2. pTab->GetGroups()->Remove(nIndex);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
czlai ![]() Groupie ![]() ![]() Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
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
How can I make 3 or 4 rows of buttons in group ?
Thanks for answering !
|
|
![]() |
|
czlai ![]() Groupie ![]() ![]() Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
Help Please ....
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |