Print Page | Close Window

Composite Control & Embeded Commandbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7570
Printed Date: 17 July 2025 at 11:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Composite Control & Embeded Commandbar
Posted By: pavold
Subject: Composite Control & Embeded Commandbar
Date 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.






Replies:
Posted By: Oleg
Date Posted: 10 July 2007 at 9:02am
Hi,
 
You can call
pGroup->SetControlsGrouping(); and controls will acts like Paragraph/Font group of RibbonSample.
 


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


Posted By: pavold
Date Posted: 10 July 2007 at 9:35am
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.


Posted By: Oleg
Date Posted: 11 July 2007 at 12:04am
Sorry, no :(
only whole group can be set.


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


Posted By: pavold
Date Posted: 11 July 2007 at 2:04am
And what would you suggest to solve the original problem?

Pavol


Posted By: pavold
Date Posted: 11 July 2007 at 8:24am
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.



Posted By: Oleg
Date Posted: 12 July 2007 at 1:27am
Hi,
 
You can try override CXTPRibbonGroup,  its OnCalcDynamicSize and manually position buttons inside this group.


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



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