Print Page | Close Window

Customizable

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=10660
Printed Date: 07 October 2024 at 10:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customizable
Posted By: griswald88
Subject: Customizable
Date Posted: 17 May 2008 at 2:01am
I have 4 command bars (toolbars) A, B, C and D. How come when I click the customize drop down at the end of the bar I get options for A, B, C and D? I only want A > to show up if I am on bar A and B > if I am on bar B, how do I make this work?  i noticed that it seems to work correct in the examples, but I cannot seem to get the desired effect. THANKS!



Replies:
Posted By: Aaron
Date Posted: 17 May 2008 at 3:31am
Hi,
 
I don't know which sample you mean and how it will be displayed but I think it's designed. If you dock a toolbar on a new "row" you get to customize only that single toolbar. If another toolbar is docked on the same "row" you get a menu with both toolbars.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: griswald88
Date Posted: 17 May 2008 at 6:20pm
Ah, that is it...that is how it is designed. It is directly related to the docking...hmmm, that's kind of odd. Is there any way then to only show the customize on the last bar docked in the row? Otherwise, when I perform the auto dock routine I have an extra space between the bars for where the customize button "would" be.


Posted By: Aaron
Date Posted: 17 May 2008 at 11:24pm
Hi,
 
When you dock the toolbars you could set the last toolbar:
 
CommandBars(5).ShowExpandButton = True (and all others to False)
 
But when the form is resized the toolbars will be positioned as well !!! So bye bye only one ExpandButton
 
 
What do you mean by:
Otherwise, when I perform the auto dock routine I have an extra space between the bars for where the customize button "would" be
 
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: griswald88
Date Posted: 18 May 2008 at 1:06am
I essentially copied the DockRightOf method from the samples and after I add each of my toolbars, I dock them all right beside one another, BUT if I do not shot the ExpandButton, there is a "buffer space" to the right of each bar, before the start of the next bar. It's as if it is maintaining a buffer of space for where the ExpandButton WOULD be if it were visible...make sense?


Posted By: Aaron
Date Posted: 18 May 2008 at 1:35am
Hi,
 
Not really
 
In the sample I uploaded in the other post you did, change this and see what happens.
 
In Private Function LoadMenuItems()
 
CommandBars.ActiveMenuBar.CommandBars.Options.ShowExpandButtonAlways = True

and add after:

toolBarViews.ModifyStyle xtpFlagHideClose, XTP_CBRS_GRIPPER
toolBarViews.ShowExpandButton = True

I don't see any gap between the toolbars with the sample project.

Otherwise upload your project with only the code with docking of the toolbars.
 
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: griswald88
Date Posted: 20 May 2008 at 4:45pm
Ah, that did the trick; it was not having the AlwaysShowExpandButtons set to True.
 
Along the same lines, if I have 4 toolbars on the same "row" and I drag the 2nd bar to a new "row", I would like the remaining bars to "slide" over, what's the best way to accomplish that?


Posted By: Aaron
Date Posted: 21 May 2008 at 6:37am
Hi,
 
I don't see a way of doing this, there are a few options what you could do:
 
1.    The best way is to ask CodeJock to implement this in CommandBars
 
2.    The only way to have toolbars side by side is to set toolBar.EnableDocking xtpFlagAlignTop Or xtpFlagFloating Or xtpFlagStretchedShared. In this case the toolbar (last one in the row) will be resized, I think you don't want that.
 
3.    Write your own code to re-dock the toolbars. But then again you need an event when a toolbar is repositioned.  I haven't seen that event either and that brings me to option number 1


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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