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

Command Bars position

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


Joined: 22 February 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote alexshemesh Quote  Post ReplyReply Direct Link To This Post Topic: Command Bars position
    Posted: 09 January 2011 at 11:49am
hi
Im creating application in C# using 13 version of xtreme codejock sdk.
I have several toolbars on same form.
When i create them they always shown one beneath another from top to bottom in order ive created them.
I need to place them in a row every next toolbar to the right of previous.
How i do it?
I didn't found any properties or functions controlling placement of the toolbar.
The only function i found was MoveAllignedControl from ControlBars,but it has all arguments marked as out.
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: 09 January 2011 at 1:29pm

Hi,

It's VB code but is easy to change into C# Wink

 
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
 
 
Just call:
 
DockRightOf CommandBars(2), CommandBars(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
alexshemesh View Drop Down
Groupie
Groupie


Joined: 22 February 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote alexshemesh Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2011 at 10:20am
Thanks , it works

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.188 seconds.