Only allow docking on one side |
Post Reply |
Author | |
ziracote
Newbie Joined: 31 October 2006 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 27 May 2008 at 8:57am |
Is there a property to only allow a window to dock on one side?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Add this code
Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, ByVal Container As XtremeDockingPane.IPaneActionContainer, Cancel As Boolean)
On Error Resume Next If (Action = PaneActionDocking) Then If (Container.Container.Type <> PaneTypeTabbedContainer) And _ (Container.Direction = DockTopOf Or Container.Direction = DockBottomOf Or Container.Direction = DockRightOf) Then Cancel = True End If End If End Sub |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chionatech
Newbie Joined: 27 August 2013 Location: Houston, TX Status: Offline Points: 4 |
Post Options
Thanks(0)
|
A very late reply, but just had to do this myself.
For a working example, get the Docking Pane sample MDIPanes, and edit the OnDockingPaneNotify to have the following code:
When you run the sample, you'll notice that you can no longer dock top or bottom and the docking highlights don't even show up.
|
|
It's not the dumb question that bothers me. It's the dumb mistake made because a dumb question wasn't asked.
|
|
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 |