Solved: DoDockBottomOf ? |
Post Reply |
Author | |
JasonG
Groupie Joined: 07 July 2008 Status: Offline Points: 76 |
Post Options
Thanks(0)
Posted: 25 July 2008 at 10:57am |
This function will attach two commandbars to eachother, side by side.....
Private Sub doDockRightOf(BarToDock As CommandBar, BarOnLeft As CommandBar, cmd As CommandBars) Dim Left As Long Dim Top As Long Dim Right As Long Dim Bottom As Long cmd.RecalcLayout BarOnLeft.GetWindowRect Left, Top, Right, Bottom cmd.DockToolBar BarToDock, Right, (Bottom + Top) / 2, BarOnLeft.Position End Sub What X & Y coordinates would I use if I wanted to dock two bars, one below the other, on the right side of the window? The "BarOnTop" is already set to position=BarRight.. Private Sub doDockBottomOf(BarToDock As CommandBar, BarOnTop As CommandBar, cmd As CommandBars) Dim Left As Long Dim Top As Long Dim Right As Long Dim Bottom As Long cmd.RecalcLayout BarOnTop.GetWindowRect Left, Top, Right, Bottom cmd.DockToolBar BarToDock, ?, ?, BarOnTop.Position End Sub |
|
Product: Xtreme SuitePro (ActiveX) 12.0.1
Platform: Windows Vista/XP Language: Visual Basic 6.0 SP6 |
|
JasonG
Groupie Joined: 07 July 2008 Status: Offline Points: 76 |
Post Options
Thanks(0)
|
Duh.
cmd.DockToolBar BarToDock, (Right + Left) / 2, Bottom, BarOnTop.Position |
|
Product: Xtreme SuitePro (ActiveX) 12.0.1
Platform: Windows Vista/XP Language: Visual Basic 6.0 SP6 |
|
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 |