Constrained Docking Direction |
Post Reply |
Author | |
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
Posted: 25 June 2007 at 1:42pm |
Does anyone know of a way to restrict a pane from docking to the top and bottom of the main frame... but still be able to dock anywhere on another docking pane?? In other words - I'd like to be able to stack docking panes, but only on the left and right sides of the main frame.
Cheers ~ jp
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
in vb6 it looks like:
Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, ByVal Container As XtremeDockingPane.IPaneActionContainer, Cancel As Boolean)
If Action = PaneActionDocking Then If Container.Container Is DockingPaneManager.Layout.TopContainer Or _ Container.Container Is DockingPaneManager.Layout.ClientContainer Then If Container.Direction = DockBottomOf Or Container.Direction = DockTopOf Then Cancel = True End If End If End Sub |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
apuhjee
Senior Member Joined: 02 September 2005 Location: United States Status: Offline Points: 130 |
Post Options
Thanks(0)
|
Thanks Oleg. This was working for me also:
private void DockingPane_Action(object sender, AxXtremeDockingPane._DDockingPaneEvents_ActionEvent e) { switch (e.action) { case DockingPaneAction.PaneActionDocking: if ((e.container.Direction == DockingDirection.DockTopOf || e.container.Direction == DockingDirection.DockBottomOf) && (e.container.Container.Type == DockingPaneType.PaneTypeClient || e.container.Container.Type == DockingPaneType.PaneTypeSplitterContainer)) e.cancel = true; break; } } |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Yeap, also right. Thanks for sharing. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |