Print Page | Close Window

Please, help

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=9305
Printed Date: 25 April 2024 at 6:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Please, help
Posted By: OscarM
Subject: Please, help
Date Posted: 14 January 2008 at 3:37pm
with this code:

    Dim pPane As XtremeDockingPane.Pane = Nothing
    Dim pPaneUlt As XtremeDockingPane.Pane = Nothing

    With DockingPane1
        pPane = .CreatePane(1, 150, 200, XtremeDockingPane.DockingDirection.DockBottomOf, Nothing)
        With pPane
            .Hide()
            .Title = "Seguimiento"
            .Selected = True
            pPaneUlt = pPane
        End With
        pPane = .CreatePane(2, 150, 200, XtremeDockingPane.DockingDirection.DockBottomOf, Nothing)
        With pPane
                .AttachTo(pPaneUlt)
            .Hide()
            .Handle = mAdjuntos.Handle
            .Title = "Adjuntos"
            pPaneUlt = pPane
        End With

        pPane = .CreatePane(3, 150, 200, XtremeDockingPane.DockingDirection.DockBottomOf, Nothing)
        With pPane
                .AttachTo(pPaneUlt)
            .Handle = mDocumentos.Handle
            .Hide()
            .Title = "Documentos"
            pPaneUlt = pPane
        End With
        pPane = .CreatePane(4, 150, 200, XtremeDockingPane.DockingDirection.DockBottomOf, Nothing)
        With pPane
                .AttachTo(pPaneUlt)
                .Hide()
            .Handle = mTareas.Handle
            .Title = "Tareas"
            pPaneUlt = pPane
        End With
    End With





With click on any pane:



all docking panes are opened, and i was finding something like this:





Replies:
Posted By: Aaron
Date Posted: 30 January 2008 at 4:06am
Hi,
 
I have simular problems with DockingPanes. I found that when the states are saved (DockingPaneManager.SaveState) and you want to create another pane, this pane does not exist in de registry. So using the DockingPaneManager.LoadState will have affect on the panes you just created. So I didn't call DockingPaneManager.LoadState and all the panes will be created as you wanted with code. Positioning all the panes during runtime and DockingPaneManager.SaveState will do the rest. So the next time I run the app, call DockingPaneManager.LoadState, the panes are correctly positioned. I have to find a way to work around this problem.



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