We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

splitter control in dockingmanager

Thread ID:

Created:

Updated:

Platform:

Replies:

59058 Apr 4,2007 04:51 AM May 18,2010 06:45 AM Windows Forms 3
loading
Tags: Tools
quagmire
Asked On April 4, 2007 04:51 AM

Hello.

How can I replace the splitter controls in DockingManager?
I need to chage splitter control appearance and do custom actions when I click on different parts of it.

Thanks.

Murugan [Syncfusion]
Replied On April 20, 2007 01:55 PM

Hi Ivan,

We are really sorry for very long delay in responding. DragSplitter could be accessed from the DockingManager.HostControl.Controls collections. Herewith I have attached the sample to change the Color of the DragSplitter. Please refer to attachment and let me know if it helps you.

http://websamples.syncfusion.com/samples/Tools.Windows/F59058/Main.htm

Thanks for using Syncfusion products.

Regards,
Murugan P.S

Matt Speller
Replied On May 17, 2010 07:04 AM

Hi there, this link is no longer valid. Please can you update as I need similar functionality.

I need to know when the user changes the sizes of the docked controls by using the splitter control. Is there an event I can listen to on the dock host or manager - or will I have to subscribe to the events of the DragSplitter?

Lingaraj S [Syncfusion]
Replied On May 18, 2010 06:45 AM

Hi Matt,

Thank you for the update.

Please try using DragSplitterMoving in DragSplitter to detect the size change in Docked Controls as shown below.

public Form1()
{
InitializeComponent();
this.dockingManager1.HostControl.ControlAdded += new ControlEventHandler(HostControl_ControlAdded);
this.dockingManager1.HostControl.ControlRemoved += new ControlEventHandler(HostControl_ControlRemoved);
}
void HostControl_ControlRemoved(object sender, ControlEventArgs e)
{
if (e.Control is DragSplitter)
{
DragSplitter sp = e.Control as DragSplitter;
sp.DragSplitterMoving -= new SplitterEventHandler(sp_DragSplitterMoving);
}
}
void HostControl_ControlAdded(object sender, ControlEventArgs e)
{
if (e.Control is DragSplitter)
{
DragSplitter sp = e.Control as DragSplitter;
sp.DragSplitterMoving += new SplitterEventHandler(sp_DragSplitterMoving);
}
}
void sp_DragSplitterMoving(object sender, SplitterEventArgs e)
{
DragSplitter sp = sender as DragSplitter;
}


Please let me know if you have any queries.

Regards,
Lingaraj S.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;