Print Page | Close Window

DockingPanel Layout suggestion

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=6580
Printed Date: 31 January 2025 at 11:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DockingPanel Layout suggestion
Posted By: Albert1
Subject: DockingPanel Layout suggestion
Date Posted: 07 March 2007 at 8:11am
Hello,
This simple code  will make me crazy ...

Private Sub Form_Load()
   
    Dim A As Pane, B As Pane, C As Pane, D As Pane
   
    Set A = DockingPaneManager.CreatePane(1, 600, 40, DockBottomOf, Nothing)
    A.Title = "A"
    A.Options = PaneNoCloseable + PaneNoFloatable
   
    Set B = DockingPaneManager.CreatePane(2, 600, 200, DockTopOf, A)
    B.Title = "B"
    B.Options = PaneNoHideable + PaneNoCloseable + PaneNoFloatable
  
    Set C = DockingPaneManager.CreatePane(3, 120, 120, DockRightOf, Nothing)
    C.Title = "C"
    C.Options = PaneNoCloseable + PaneNoFloatable
   
    Set D = DockingPaneManager.CreatePane(4, 120, 120, DockBottomOf, C)
    D.Title = "D"
    D.Options = PaneNoCloseable + PaneNoFloatable
   
    DockingPaneManager.Options.HideClient = True

End Sub


I cannot understand why panel A has a strange behavior. When I click on hide / show, the position is not correct. The more I click hide/show, the more panels are docked wrong.
What I wish is easy to understand (panel A should stay in the bottom of panel B and not occupy the space of panel D). Any suggestion?

Thank you

Alberto





Replies:
Posted By: LittleJK
Date Posted: 11 May 2007 at 11:54am
setting the  A.MaxTrackSize.Height = 40 will make it not move all over the place. 



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