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.
Syncfusion Feedback

DockingManager: Custom CaptionBackground PER Caption

Thread ID:

Created:

Updated:

Platform:

Replies:

69213 Oct 18,2007 05:30 PM UTC Oct 22,2007 11:15 PM UTC Windows Forms 1
loading
Tags: Tools
ERobishaw
Asked On October 18, 2007 05:30 PM UTC

Dockingmanager1.InactiveCaptionBackground can be globally set for all docked controls.

Is it possible to set a specific control's docking area's background ?

Something like dockingManger1.SetCaptionBackground(control)?

Also, is setting custom floating captions coming any time soon?


J.Nagarajan [Syncfusion]
Replied On October 22, 2007 11:15 PM UTC

Hi ERobishaw ,

Thanks for your interest in Syncfusion products.

You can set caption background color for particular control . You have to handle ProvideGraphicsItems event. Please use the following code snippet.

[C#]

private void dockingManager1_ProvideGraphicsItems(object sender, Syncfusion.Windows.Forms.Tools.ProvideGraphicsItemsEventArgs arg)
{
if(arg.Control is Panel)
arg.CaptionBackground = Brushes.YellowGreen;
if (arg.Control is RichTextBox)
arg.CaptionBackground = Brushes.Red;
}

When the control is in floating state the dockhost control will be hosted in a floating form and the floating form caption will be same like the owner form of the floating form. Present architecture of docking manager is not supporting customization of floating form caption.

Please let me know if this helps you.

Regards,
Nagaraj

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.

Warning Icon 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.Close Icon

;