Print Page | Close Window

adding two toolbars on one commandbar

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=7474
Printed Date: 18 June 2025 at 1:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: adding two toolbars on one commandbar
Posted By: LittleJK
Subject: adding two toolbars on one commandbar
Date Posted: 28 June 2007 at 2:20pm
Hi we have two toolbars in the same commandbar... we are trying to figure out how to change the order of the buttons. One commandbar is actually built in a module while the other is built in the form. We are looking to have one toolbar be infront of the other... Any Ideas?



Replies:
Posted By: Oleg
Date Posted: 29 June 2007 at 1:16am
Hi,
 
Here code you can try:
 
Private Sub DockRightOf(BarToDock As CommandBar, BarOnLeft As CommandBar)
    Dim Left As Long
    Dim Top As Long
    Dim Right As Long
    Dim Bottom As Long
   
    CommandBars.RecalcLayout
    BarOnLeft.GetWindowRect Left, Top, Right, Bottom
   
    CommandBars.DockToolBar BarToDock, Right, (Bottom + Top) / 2, BarOnLeft.Position
End Sub


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



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