Command Bars position |
Post Reply |
Author | |
alexshemesh
Groupie Joined: 22 February 2009 Status: Offline Points: 17 |
Post Options
Thanks(0)
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 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi, It's VB code but is easy to change into C# 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.... |
|
alexshemesh
Groupie Joined: 22 February 2009 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Thanks , it works
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |