Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - abbreviated ribbon group
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

abbreviated ribbon group

 Post Reply Post Reply
Author
Message
ibmldev View Drop Down
Groupie
Groupie


Joined: 17 October 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibmldev Quote  Post ReplyReply Direct Link To This Post Topic: abbreviated ribbon group
    Posted: 20 October 2008 at 3:46pm
If I add enough groups to a tab on my ribbon, the groups at the right end will become abbreviated--instead of the group, there will be a smaller button that you can press to show the group.

I have a "kill" button control in each of these groups which causes me to remove the group when it is clicked. But I can't remove such an abbreviated group from the tab, because it is apparently not there anymore--replaced by the button, I suppose. group->getCaption() returns the group's caption, but group->getIndex() returns -1 if the group is abbreviated.

I would like to know (1) is there a way to force a group to be visible, even if other groups become abbreviated to make room for it; and (2) is it possible for the ribbon bar to scroll horizontally instead of abbreviating the groups?

Also, (3) is there a way to know that there is a button which represents a group? Is there an object in the tab for the button?
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: 21 October 2008 at 2:10am
Hi,
 
Call pGroup->AllowReduce(3); for groups.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ibmldev View Drop Down
Groupie
Groupie


Joined: 17 October 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibmldev Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2008 at 12:32pm
That was exactly what I needed, thanks! I'm very pleased with that.

Can you describe how the levels 0-3 differ, in what reduction is allowed?
I gather that 3=no reduction and 0=full reduction, but what about 1 and 2? I couldn't see any difference when I tried them--they looked like 3 did...

Another question -- If I size the main window down so that groups don't fit, this prevents the group from being reduced to a button. But the group is still squeezed down sometimes, with the result that some controls are shown in abbreviated form. Specifically, the labels of checkboxes are omitted (only the checkable box, not the label, is shown). [ Correction: these are buttons; the buttons aren't changed in width, but the labels disappear.] Can this also be prevented, maybe by some property of the control itself? I tried calling ctrl->SetWidth(100), but to no avail. [ Correction: the width is preserved, but the text disappears. The group does not seem to change size, but this happens when the window is small enough that the ribbon becomes scrollable. ] Or possibly, can the group be given a minimum width too?
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: 22 October 2008 at 1:30am
Hi,
Yes its Reduce 1 and 2.
Call pGroup->AllowReduce(0); to prevent all Reduce.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ibmldev View Drop Down
Groupie
Groupie


Joined: 17 October 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibmldev Quote  Post ReplyReply Direct Link To This Post Posted: 22 October 2008 at 12:36pm
Ah, I see how it works now. Thanks for your patience.
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.