Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Composite Control & Embeded Commandbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Composite Control & Embeded Commandbar

 Post Reply Post Reply
Author
Message
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post Topic: Composite Control & Embeded Commandbar
    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.



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2007 at 12:04am
Sorry, no :(
only whole group can be set.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2007 at 2:04am
And what would you suggest to solve the original problem?

Pavol
Back to Top
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.