Set background color of tabs

Posted by: CCOMPTON on 5 December 2018, 5:41 pm EST

    • Post Options:
    • Link

    Posted 5 December 2018, 5:41 pm EST

    I want to be able to set the background colors of the individual tabs to different colors. I found the properties TabBackColor and TabBackColorSelected and have set them to the colors I want.

    TabBackColorSelected works as expected. When that tab is selected, I see the color I chose.

    However, TabBackColor only seems to be used when the mouse moves over a non-selected tab. The rest of the time the tab is grey.

    Is there a way to always use the TabBackColor even if the mouse is not over the tab?

  • Posted 7 December 2018, 1:26 am EST

    Hello,

    The TabBackColor is visible in case of Classic VisualStyle (and Custom VisualStyle too) as expected. This is the desired behavior. Since other visual styles have their own styling related properties, they set their own set of properties for the controls.

    To make these existing themes have different properties for the controls, you can create a Custom Theme and add it to your application for the C1DockingTab. Please refer this documentation link to create custom themes:

    http://help.grapecity.com/componentone/NetHelp/c1themes/webframe.html#QSCreatingaCustomTheme.html

    A sample using the same is attached for your reference.

    Best Regards,

    Esha

    prj_C1DockingTab.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels