Print Page | Close Window

abbreviated ribbon group

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=12489
Printed Date: 23 June 2025 at 6:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: abbreviated ribbon group
Posted By: ibmldev
Subject: abbreviated ribbon group
Date 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?



Replies:
Posted By: Oleg
Date Posted: 21 October 2008 at 2:10am
Hi,
 
Call pGroup->AllowReduce(3); for groups.


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


Posted By: ibmldev
Date 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?


Posted By: Oleg
Date 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


Posted By: ibmldev
Date Posted: 22 October 2008 at 12:36pm
Ah, I see how it works now. Thanks for your patience.



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