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.

Adding a button to Docking Manager

Thread ID:





8396 Nov 5,2003 03:01 AM Nov 5,2003 07:58 AM Windows Forms 1
Tags: Tools
Amit R Chavan
Asked On November 5, 2003 03:01 AM

Hi, I want to add a new button in addition to Close and AutoHide Buttons in the Tools.DockingManager. Will it be possible to do so? Is there any other way to work around this problem? Looking forward for your speedy reply. Regards Amit Chavan

Administrator [Syncfusion]
Replied On November 5, 2003 07:58 AM

Hi Amit, This is certainly doable if you have the source code. You will have to override the CaptionPainter class in the source code and use a different drawing routine for the captions buttons. But this would be very cumbersome as this involves overriding/rewriting significant sections of the DockHost/DockTabController hit testing codes. The direction that you would need to take would be - overriding the DockHost class, providing the custom CaptionPainter that draws the different button, intercepting all hit-testing routines that involve the caption painter and adding the custom handling code from here. This would be the general approach, but due to the complexity of the task, this is something that we might not be able to support. However we could consider this as a feature request for a future release of Essential Suite. Regards, Guru Patwal Syncfusion, Inc.


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.