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

Toolbar side by side

 Post Reply Post Reply
Author
Message
Moonlite View Drop Down
Newbie
Newbie


Joined: 19 January 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Moonlite Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar side by side
    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.
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 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
Back to Top
Moonlite View Drop Down
Newbie
Newbie


Joined: 19 January 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Moonlite Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2008 at 7:01am
Thank you so very much! :)
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.139 seconds.