Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Customizable
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Customizable

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


Joined: 16 May 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote griswald88 Quote  Post ReplyReply Direct Link To This Post Topic: Customizable
    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!
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
griswald88 View Drop Down
Groupie
Groupie


Joined: 16 May 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote griswald88 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
griswald88 View Drop Down
Groupie
Groupie


Joined: 16 May 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote griswald88 Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
griswald88 View Drop Down
Groupie
Groupie


Joined: 16 May 2008
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote griswald88 Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
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.187 seconds.