Print Page | Close Window

Commandbar Controls Positions

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1566
Printed Date: 18 June 2024 at 8:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Commandbar Controls Positions
Posted By: Ashm01
Subject: Commandbar Controls Positions
Date Posted: 21 December 2004 at 4:18am

Hi,

I am a newbie to these controls and need alot of help in getting them to behave as per my requirements.

I created a Progressbar by adding a custom control and that seems to work fine. However, i am not having much luck in positioning them.

I tried the Position Property but, they don't seem to line up as per my requirements in picture2. I have to manually drag it across which is not what I need.

I need them to be along right next to each other side by side. How can I accomplish this?




Replies:
Posted By: SuperMario
Date Posted: 21 December 2004 at 6:13am
Use DockRightOf sub (See DynamicPopups Sample).

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: Ashm01
Date Posted: 21 December 2004 at 10:31pm

Thanks Dude,

When do you think, you guys will have support for a 'Awesome' status bar? This current one is a letdown compared to your other controls. 

 

 




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