![]() |
Docking pane is behind tab control? |
Post Reply ![]() |
Author | |
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() Posted: 21 August 2006 at 4:31pm |
I have a very simple VB.NET application with a standard form that has an Xtreme Tab control on it, Ive also added 1 docking pane. When the pane is created it shows up behind the tab control at all times, you can only see the parts not covered by the tab control. I remember in VC++ there was some style you had to add to get this to work( clip children) what is the work around in VB.NET?
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
try making the z-order of the dockingpane behind all other controls
|
|
![]() |
|
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
Is this a standard thing that needs to be done? I dont see it in the samples, and it happens with almost any control that would be beneath the docking pane.
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
See this article.
http://www.codejock.com/support/articles/com/dockingpane/dp_3.asp |
|
![]() |
|
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
![]() |
|
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
Im also having the same type problem with MDI applications. I put a standard Docking control in the mdi client area, used the following code ONLY:
DockingPaneManager.SetMDIClient(ctrl.Handle.ToInt32()) End If Next ctrl Dim paneExplorer As Pane = DockingPaneManager.CreatePane(1, 200, 120, DockingDirection.DockLeftOf, Nothing)paneExplorer.Title = "Explorer"End Sub Private Sub DockingPaneManager_AttachPaneEvent(ByVal sender As Object, ByVal e As AxXtremeDockingPane._DDockingPaneEvents_AttachPaneEvent) Handles DockingPaneManager.AttachPaneEvent If pageExplorer Is Nothing Then pageExplorer = New pageExplorer End Ife.item.Handle = pageExplorer.Handle.ToInt32 End SubAnd the title bar of the docking frame is covered by the toolbar/menu of the MDI container. Its as though the docking pane manager doesnt know the actual client rect of the application. |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
You code looks OK for MDI app. Which version of VS do you use?
For SDI I recommend you use a panel control to contain all the client controls, then do something like this: Private Sub DockingPaneManager_ResizeEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DockingPaneManager.ResizeEvent Dim left As Integer Dim top As Integer Dim right As Integer Dim bottom As Integer DockingPaneManager.GetClientRect(left, top, right, bottom) clientPanel.SetBounds(left, top, right - left, bottom - top) End Sub |
|
![]() |
|
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
VS 2005
|
|
![]() |
|
spike ![]() Groupie ![]() Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
![]() ![]() ![]() ![]() ![]() |
I got Oleg to help me out, here is the fix:
Private Sub DockingPaneManager_GetClientBordersWidth(ByVal sender As Object, ByVal e As AxXtremeDockingPane._DDockingPaneEvents_GetClientBordersWidthEvent) Handles DockingPaneManager.GetClientBordersWidth
e.top += 25 e.bottom += 20 End Sub |
|
![]() |
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 |