Print Page | Close Window

Toolbar side by side

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=10254
Printed Date: 08 October 2024 at 1:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar side by side
Posted By: Moonlite
Subject: Toolbar side by side
Date Posted: 16 April 2008 at 7:40am
Hi All,

I create TWO toolbars with code similar like this:

CommandBar Toolbar = CommandBars.Add("Task", XTPBarPosition.xtpBarTop);
Toolbar.DefaultButtonStyle = XTPButtonStyle.xtpButtonIconAndCaption;
Toolbar.SetIconSize(16, 16);
Toolbar.ShowTextBelowIcons = false;
Toolbar.Closeable = false;
Toolbar.ShowExpandButton = false;
CommandBarControls Controls = Toolbar.Controls;

The second toolbar always placed below the first toolbar. Can we place it side by side along with the first toolbar?

C# - Codejock 12.0.0.

Thanks in advance. Regards.



Replies:
Posted By: Aaron
Date Posted: 17 April 2008 at 12:41am
Hi,
 
This is from a sample of CodeJock
 
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


Posted By: Moonlite
Date Posted: 17 April 2008 at 7:01am
Thank you so very much! :)



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