User (Old forums)MemberAugust 27, 2008 at 1:47 pmPost count: 23064
I am evaluating the Docking Windows control, specifically using ToolWindows that can either be docked, floating or Tabbed Documents. To this end I have a Windows Form with both a DockLayoutManager and a TabbedMdiManager control, and the Form has IsMdiContainer=True
When I right click on the caption bar of a Floating or docked ToolWindow, the context menu is displayed with the complete list of options (Floating, Dockable, Tabbed Document, AutoHide, Hide)
If I select “Tabbed Document” the Tool Window correctly becomes a Tabbed Document.
If I then Right Click on the Tab of this document the context menu only shows two options, Close and Tabbed Document. With no Floating, Dockable, AutoHide or Hide it is impossible to remove this Tool Window from the Tabbed Document Group.
Is this a bug, or am I missing some configuration to show these other options in the context menu?
Thanks in advance for any help
Imported from legacy forums. Posted by Gareth (had 6222 views)User (Old forums)MemberAugust 29, 2008 at 2:24 pmPost count: 23064
Actually, we do not reproduce this on our side. Do you have a code snippet you could supply so we can investigate this further?
Imported from legacy forums. Posted by André (had 987 views)User (Old forums)MemberSeptember 15, 2008 at 6:59 amPost count: 23064
I have put together a little sample of my problem. If you run the below code it will produce a form with two docked mdi forms, and floating mdi capable toolwindow. The title bar of the toolwindow can be right-clicked and the context menu can be used to set it docked or floating without problem. However if you choose “Tabbed Document” the mdi toolwindow becomes another tab in the main mdi view, but right clicking the tab does not produce the context menu giving the option to set it back to Floating or Docked. This makes it impossible for the user to turn this toolwindow back to a docked window.
Context Menu Items on Docked ToolWindow – “Floating”, “Dockable”, “Tabbed Document”, “AutoHide”, “Hide”
Context Menu Items after “Tabbed Document” selected – “Close”, “Tabbed Document”
The version of the Docking Windows Control I have is 2.1.8373.8220. Running on Windows2003R2x64 using VS2008
Also on the GUI please note that the solid border below the currently selected tab make it less clear that it is the current tab, and doesn’t match the VS2005 style.
Many thanks for looking into this, and sorry it took so long to send you this example..
Public Class MainForm
#Region ” Designer Code “
Public Sub New()
‘ This call is required by the Windows Form Designer.
‘ Add any initialization after the InitializeComponent() call.
‘Form overrides dispose to clean up the component list.
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
Friend WithEvents DockLayoutManager1 As Xceed.DockingWindows.DockLayoutManager
Friend WithEvents TabbedMdiManager1 As Xceed.DockingWindows.TabbedMdi.TabbedMdiManager
‘Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
‘NOTE: The following procedure is required by the Windows Form Designer
‘It can be modified using the Windows Form Designer.
‘Do not modify it using the code editor.
Private Sub InitializeComponent()
Me.DockLayoutManager1 = New Xceed.DockingWindows.DockLayoutManager
Me.TabbedMdiManager1 = New Xceed.DockingWindows.TabbedMdi.TabbedMdiManager
Me.DockLayoutManager1.Style = Xceed.DockingWindows.RenderStyle.VS2005
Me.TabbedMdiManager1.Style = Xceed.DockingWindows.RenderStyle.VS2005
Me.TabbedMdiManager1.TabStripAppearance.ShowDragHints = False
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(593, 452)
Me.IsMdiContainer = True
Me.Name = “MainForm”
Me.Text = “MainForm”
Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MdiForm1 As New MdiForm
MdiForm1.Text = “Mdi Form 1”
MdiForm1.MdiParent = Me
Dim MdiForm2 As New MdiForm
MdiForm2.Text = “Mdi Form 2”
MdiForm2.MdiParent = Me
Dim ToolWindow As New Xceed.DockingWindows.ToolWindow
ToolWindow.Text = “Tool Window”
ToolWindow.Key = “ToolWindowKey”
Public Class MdiForm
Imported from legacy forums. Posted by Gareth (had 854 views)User (Old forums)MemberSeptember 19, 2008 at 3:25 pmPost count: 23064
This is to let you know that we have reproduced the issue, but not in all circumstances. So we will need some time to investigate it further.
Imported from legacy forums. Posted by André (had 4301 views)User (Old forums)MemberFebruary 12, 2010 at 6:04 amPost count: 23064
I’m using both control DockLayoutManager as TabbedMdiManager on the same form, and i’m having the same problem as Gareth. I am using version 2.1.9460.14460 of Xceed.DockingWindows.
Are there plans to solve this problem?
Another question: is there a way to avoid that a tool window sets its state to MDI?
Thanks in advance.
Imported from legacy forums. Posted by Pablo G. (had 3072 views)
- You must be logged in to reply to this topic.