![]() |
Composite Control & Embeded Commandbar |
Post Reply ![]() |
Author | |
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 10 July 2007 at 5:43am |
Hi,
I have a situation, where I want to group several controls together in the commandbar/ribbonbar. In this case, it's a combobox and several buttons. It is important, that these controls retail the fixed layout (in respect to each other) all the times. In other words, they should act like a single control. Yet they should retain all the functionality of a distinct controls. I tried to embed a commandbar to CXTPControlCustom, but I was not successful. Can you give me some hints how to achieve this? Thanks, Pavol. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can call
pGroup->SetControlsGrouping(); and controls will acts like Paragraph/Font group of RibbonSample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Nice, this is almost what I need.
But I need to enable it only for several controls from the ribbon group. Something like this: ----------------------------------------------- | ########## | < X | Combo | Y > | | # Large # | < X | Combo | Y > | .. some other controls | # Button # | < X | Combo | Y > | | ########## | | ------------------------------------------------- So I have here a ribbon group, that has one large button, then a group of 3 *composites* (button-combo-button) and other controls group. I'd like to see *composites* grouped just like SetControlsGrouping(), but the rest to be grouped in the normal way. Would this be possible to get? Best regards, Pavol. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Sorry, no :(
only whole group can be set.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
And what would you suggest to solve the original problem?
Pavol |
|
![]() |
|
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
BTW: I spotted, that excel 2007 can arrange the buttons in the way I have described. It would be nice to have it supported in ToolkitPro.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can try override CXTPRibbonGroup, its OnCalcDynamicSize and manually position buttons inside this group.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |