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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DockingManager and Appearance-Caption

Thread ID:





56476 Feb 15,2007 02:59 PM UTC Feb 20,2007 09:46 AM UTC WinForms 6
Tags: Tools
Ryan Hardoon
Asked On February 15, 2007 02:59 PM UTC

Hi everybody,

I figured that the "Appearance-Caption" related properties are what I need in order to control the docking-panels' caption colors.

I tried to play arround with the SimpleDocking sample, but these properties seem to have no effect.

Does anyone know what is recquired for them to take effect, or if there's another way of controlling the docking-panels' caption colors and style ?

Thanks in advance.

Administrator [Syncfusion]
Replied On February 15, 2007 03:23 PM UTC

Another question.

Is there a way to apply DockToFill just to the remaining space rather than the entire DockingManager rectangle ?

Murugan [Syncfusion]
Replied On February 15, 2007 11:06 PM UTC

Hi Ryon,

We are really sorry to say that currently we could not change the CaptionBar colors. We already logged feature request in this regard. The feature will be implemented within June 2007.

Here is the feature request link

Feature Request #1243 - Need a provision to set user defined color for captionbar when VisualStyle is OfficeXP/2003/2007 etc

DockToFill only works with the overall Form rectangle. We could not change the behavior as you mentioned. It is an internal behavior of DockingManager.

Thanks for using Syncfusion products.

Murugan P.S

Replied On February 16, 2007 11:52 AM UTC

Hi Ryan,

While feature haven't been implemented you can use ProvideGraphicsItems event.

Here is the sample with highligting active control's caption.

private void dockingManager1_ProvideGraphicsItems(object sender, Syncfusion.Windows.Forms.Tools.ProvideGraphicsItemsEventArgs arg)
if (arg.IsActiveCaption)
arg.CaptionBackground = Brushes.LightBlue;
arg.CaptionFont = new Font("Tahoma", 10f, FontStyle.Italic);

Thanks, Yuriy

Administrator [Syncfusion]
Replied On February 17, 2007 05:41 PM UTC

Thanks Yuriy.

using ProvideGraphicsItems didn't seem to have any effect.

I did notice that setting VisualStyle to "Default" enables me to set ActiveCaptionBackground.Style to "Gradient" and ActiveCaptionBackground.GradientStyle to whatever GradientStyle I desire in the property grid at runtime - and it does produce the desired effect, but both properties appear to be readonly when I try to apply the changes programatically.
What does it mean and how do I work my way arround this problem ?

Replied On February 19, 2007 11:36 AM UTC

Hi Ryan,

Yes, the properties you are talking about does not work now.

But try to manipulate programmatically with arg variable in ProvideGraphicsItems event. I checked it myself and it works fine.

To make backgroud of docked controls painted with red color you simply need to set
arg.CaptionBackground = Brushes.Red;
in ProvideGraphicsItems event.

Thanks, Yuriy

Administrator [Syncfusion]
Replied On February 20, 2007 09:46 AM UTC

That doesn't work either, but I found out it's possible by creating a new instance of the (Active/Inactive)CaptionBackground


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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