Print Page | Close Window

Dockingpane hides under Ribbonbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=19404
Printed Date: 10 May 2024 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dockingpane hides under Ribbonbar
Posted By: ruschmeier@truncad.d
Subject: Dockingpane hides under Ribbonbar
Date Posted: 13 January 2012 at 4:51am
Hi there,
 
I have a problem with the functionality of the dockingpane. I have created a form, loaded xcb-file to display the ribbonbar and the toolbox and placed 3 dockingpanes on the form.
 
When I start the application, it lookslike this:
 
 
The panes seem to ignore the toolbar.
 
But if I just slightly move the toolbar all the panes are recalculated and they look perfect:
 
 
 
If I then resize the panes, they jump into the wrong position again.
 
I hope someone has a solution for this.
 
Thanks a lot,
Frank



Replies:
Posted By: SuperMario
Date Posted: 13 January 2012 at 11:02am
think you need this:
http://codejock.com/support/articles/com/dockingpane/dp_3.asp - http://codejock.com/support/articles/com/dockingpane/dp_3.asp


Posted By: ruschmeier@truncad.d
Date Posted: 13 January 2012 at 11:11am
Hi,
 
thanks for the answer, but I already did that. It did not work.
 
Regards,
Frank


Posted By: SuperMario
Date Posted: 13 January 2012 at 11:14am
please attach your code or modify a sample of our to show what you do


Posted By: SuperMario
Date Posted: 13 January 2012 at 11:25am
Which status bar is that?  If is is not the codejock one you will need this:

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

I am sure the solution i gave before is your problem to the drawing over the panes


Posted By: ruschmeier@truncad.d
Date Posted: 13 January 2012 at 11:46am
Hi,
 
thanks for your help. I changed this:
 

Private Sub DockingPaneManager_Resize()
    On Error Resume Next
   
    Dim Left As Long
    Dim Top As Long
    Dim Right As Long
    Dim Bottom As Long
   
    DockingPaneManager.GetClientRect Left, Top, Right, Bottom
    DockingPaneManager.RecalcLayout
   
    DockingPaneManager.SetCommandBars (CommandBars.GetDispatch)
End Sub
 
and now it works. The panes are where I want them to be! Great!
 
Thanks a lot. Now I only have the problem of the missing controls of the frame in the CommandBars Section of this forum.
 
Good day,
Frank


Posted By: SuperMario
Date Posted: 13 January 2012 at 11:56am
this is VB .Net?  That is not the proper spot for   DockingPaneManager.SetCommandBars (CommandBars.GetDispatch), it should be set after your commandbars are loaded and before the docking panes are created.



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