BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 BCGControlBar for .NET Forums
 BCGControlBar Library .NET edition
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


14 Posts

Posted - 05/06/2011 :  03:34:11 AM  Show Profile  Reply with Quote
I'm using BCGControlBar Library for .NET and I want to make a custom skin for our applications. I however can't find any information about this subject. Can anyone point me in the right direction, preferably with a small sample application?

Any help would be greatly appreciated.


4187 Posts

Posted - 05/17/2011 :  12:41:16 PM  Show Profile  Visit Support's Homepage  Reply with Quote
If you want to create custom Look & Feel you can take the following steps:

1. Derive your own class from one of our Visual Managers.
2. Override painting methods for the elements you want to look differently.
3. Apply new visual manager by creating an instance of the custom manager and passing it to the method VisualManager.SetDefaultManager.
4. If you need, you can also change some theme colors by overriding
“ModifyGlobalColors” or “UpdateSystemColors” methods.

1. Create a new C# Windows Forms application and create new bcg toolbar in designer.
2. Add a new class:
public class CustomVisualManager : VisualManager2003
public CustomVisualManager()

public override void OnFillBarBackground (ControlVisualDef vd)
vd.Graphics.FillRectangle(BrushHighlightDn, vd.RectArea);
3. Modify OnLoadForm handler as following:
private void OnLoadForm(object sender, EventArgs e)
m_customVisualManager = new CustomVisualManager();

As a result you will see the custom color of the toolbar background.

You can also take advantage on the existing code, please check out our assemblies which contain pictures for different states of the theme objects and you can try to create your own resource DLL with the same names of resources, but with the modified pictures and colors within the embedded xml file.

To follow this way you will also need to derive a custom visual manager from our VisualManager2007 and override methods “GetFullStyleAssemblyName “and “GetStyleAssemblyName”
and provide correct names for your DLL, so when you apply a new visual manager it will load your own resource DLL.

Please see our BCGSoft.Visualization project for more details.

Best regards,

BCGSoft Technical Support
Go to Top of Page


14 Posts

Posted - 05/17/2011 :  6:26:21 PM  Show Profile  Reply with Quote
Thank you for this extensive answer, I will give this a serious try!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000