Customizable |
Post Reply |
Author | |
griswald88
Groupie Joined: 16 May 2008 Status: Offline Points: 27 |
Post Options
Thanks(0)
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!
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
griswald88
Groupie Joined: 16 May 2008 Status: Offline Points: 27 |
Post Options
Thanks(0)
|
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.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
griswald88
Groupie Joined: 16 May 2008 Status: Offline Points: 27 |
Post Options
Thanks(0)
|
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?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
griswald88
Groupie Joined: 16 May 2008 Status: Offline Points: 27 |
Post Options
Thanks(0)
|
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?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |