Using AttachPane to make a group of 3 panes |
Post Reply |
Author | |
joecasa
Newbie Joined: 13 March 2007 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 13 March 2007 at 3:32pm |
I have three panes that I want to have at the bottom of my form and I want them to be grouped together so the tabs for them line up across the bottom of the form. This way the user can view one panel at a time by clicking the appropriate tab.
I use this code to make it work for the first two panes:
HistoryPane = Me.DockingPaneManager.CreatePane(4, 400, 220, XtremeDockingPane.DockingDirection.DockBottomOf, Nothing)
HistoryPane.Title = "Policy History"
HistoryPane.Hidden = False
HistoryPane.Options = PaneOptions.PaneNoFloatable Or PaneOptions.PaneNoCloseable
DependentsPane = Me.DockingPaneManager.CreatePane(5, 400, 220, XtremeDockingPane.DockingDirection.DockBottomOf, Nothing)
DependentsPane.Title = "Attorneys"
DependentsPane.Hidden = False
DependentsPane.Options = PaneOptions.PaneNoFloatable Or PaneOptions.PaneNoCloseable
DockingPaneManager.AttachPane(HistoryPane, DependentsPane)
But then when I add the third pane using the following code, it detaches the HistoryPane and causes it to dock itself above the other two panes. CoveragePane = Me.DockingPaneManager.CreatePane(6, 400, 220, XtremeDockingPane.DockingDirection.DockBottomOf, Nothing)CoveragePane.Title = "Coverages"
CoveragePane.Hidden = False
CoveragePane.Options = PaneOptions.PaneNoFloatable Or PaneOptions.PaneNoCloseable
DockingPaneManager.AttachPane(DependentsPane, CoveragePane)
|
|
Zach
Groupie Joined: 19 July 2006 Status: Offline Points: 62 |
Post Options
Thanks(0)
|
Try AttachTo
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |