Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Please, help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Please, help

 Post Reply Post Reply
Author
Message
OscarM View Drop Down
Groupie
Groupie
Avatar

Joined: 07 November 2005
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote OscarM Quote  Post ReplyReply Direct Link To This Post Topic: Please, help
    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:


Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.155 seconds.