Print Page | Close Window

RibbonBar resizing logic

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12472
Printed Date: 28 February 2025 at 3:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RibbonBar resizing logic
Posted By: mrmathis
Subject: RibbonBar resizing logic
Date Posted: 17 October 2008 at 4:30pm
I'm trying to figure out the logic behind how groups collapse & expand when the application window is resized.  I have one ribbon that goes from this:
 
 
to this
 
 
when the app window changes by just a few pixels.  All that empty area seems like a big waste of space.  I'd like to have more granular control over the collapse process, and define 3 or 4 variants of "collapse" states to provide a more smooth transition during the resize.  How can I do this?
 


-------------
--Mike



Replies:
Posted By: Oleg
Date Posted: 20 October 2008 at 7:06am
Hi,
 
Seems you manually set xtpButtonIconAndCaptionBelow style for Extrude, Cut and Resolved buttons - so they can't be collapsed.
Try to not set.


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


Posted By: mrmathis
Date Posted: 20 October 2008 at 3:33pm
OK, I tried that, and I do get a much more gradual collapse:
 
However, note that the initial layout is different from that in my original post.  I had specified xtpButtonIconAndCaptionBelow to get that precise picture.  It is important to me to be able to do that.  What I need is more control over the collapse process.  Does that capability exist?
 
If not, here's my wish list:  I would prefer it be something static, like an initial state that gets discarded when resizing happens, or a collapse priority, or a series of properties that would apply at different sizes.  Barring that, I could possibly work with some dynamic notifications during the collapse process in which I could add/remove the properties that control the behavior.
 
 


-------------
--Mike


Posted By: Oleg
Date Posted: 21 October 2008 at 2:15am
Hi,
Try set xtpButtonIconAndCaption style for "Round" button.


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


Posted By: mrmathis
Date Posted: 21 October 2008 at 11:27am
I could do that, but I don't see how that extends to a general solution.  This ribbon is just one of about a two dozen that I support.  Each of them has an initial layout specified by my planning department to emphasize our primary workflow & most-used commands, while still having access to all the rest of the commands in the system. 
 
I think what I need is a way to specify those initial layouts that would give way to a more flexible layout as the ribbon collapses.  What I am getting from your posts is that if I specify any of the xtpButton... styles to get my initial picture as desired, then that style "sticks" to the control and leads to unsatisfactory collapse behavior.  Is there any way to get both worlds?


-------------
--Mike



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