Print Page | Close Window

Docking CommandBar hides StatusBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3625
Printed Date: 06 October 2024 at 2:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking CommandBar hides StatusBar
Posted By: Shawshank
Subject: Docking CommandBar hides StatusBar
Date Posted: 08 February 2006 at 11:44am
I have a StatusBar docked along the bottom of my app. When I create a Toolbar and dock it along the bottom it hides the StatusBar. Should the Toolbar not "know" the presence of the StatusBar and dock just above it? If not, how does one keep from having the ToolBar obscure the StatusBar? I do not see a way to set a Top property of the Toolbar.



Replies:
Posted By: SuperMario
Date Posted: 08 February 2006 at 2:11pm
Why not use the Codejock StatusBar?

If for some reason you don't like the Codejock StatusBar


Private Sub CommandBars_GetClientBordersWidth(Left As Long, Top As Long, Right As Long, Bottom As Long)
   If sbStatusBar.Visible Then
        Bottom = sbStatusBar.Height
    End If
End Sub



Posted By: Shawshank
Date Posted: 08 February 2006 at 3:47pm
I like the CodeJock StatusBar just fine --that is what I am using. Yet, the CommandBar docks right over the StatusBar hiding it from view.


Posted By: SuperMario
Date Posted: 09 February 2006 at 7:19am
I'm not sure, it should be automatic.  I assume it is the order in which you add it.  Be sure to add the StatusBar after all CommandBars have been created.  Look at the StatusBar sample to see the proper order.  You will see not additional code is needed to tell the CommandBars where the StatusBar is.


Posted By: Shawshank
Date Posted: 09 February 2006 at 11:44am

Ah, that was it. I was initializing the StatusBar first. Once I followed your advice it worked fine.

 

Thxs!




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