![]() |
How to set GroupRows of RibbonBar |
Post Reply
|
| Author | |
czlai
Groupie
Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: How to set GroupRows of RibbonBarPosted: 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 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 September 2007 at 3:45am |
|
Other Questions ....
How to remove entire group from the tab ?
|
|
![]() |
|
czlai
Groupie
Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 October 2007 at 4:43am |
|
No Result ? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
czlai
Groupie
Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
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
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 October 2007 at 10:09pm |
|
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 |