Can I change InnerSpliters Height?

Docking/MDI for Windows Forms Forum

Posted 5 years ago by Yuji Kinoshita
Version: 12.1.0000
Avatar

Hi, I need to change the height of inner-splitters in TabbedMdiRootContainer. On NewHorizontalTabGroup, I want to change to same heights, and on NewVerticalTabGroup, I want to change to same widths.

1) Does DockManager provide the such a method or a property?

2) Can I fook the event of right click menu OnNewHorizontalTabGroup/OnNewVerticalTabGroup?

version 2.0.110.0

thanks.

Comments (3)

Answer - Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

1) The IDockRenderer in use has a SplitterExtent property that you can set to control the splitter size.  That should affect all splitters used in the product.

2) The DockManager.WindowContextMenu event fires before a context menu shows.  It includes the default context menu, which you can alter as needed (change items, etc.).


Actipro Software Support

Posted 5 years ago by Yuji Kinoshita
Avatar

Thank you for your reply. I tried it.

1) Sorry, I mean like a "SplitterDistance" property on WinForms.SplitContainer, Not own size.

2) I did it. thank you!

Would you tell me about (1)?

Posted 5 years ago by Yuji Kinoshita
Avatar

I figure out. Thank you for your support!

var dm       = this.dockManager;
var root     = dm.TabbedMdiRootContainer;
var splitter = dm.DockRenderer.SplitterExtent;
var count    = root.TabbedMdiContainers.Count;
foreach (TabbedMdiContainer tc in root.TabbedMdiContainers)
{ 
    tc.Height = (root.ClientSize.Height - splitter * count) / count;
    // tc.Width = (root.ClientSize.Width - splitter * count) / count; 
} 
The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.