How to set a specific theme part to a form title bar

Posted by: peter.grefberg on 6 November 2023, 8:18 pm EST

  • Posted 6 November 2023, 8:18 pm EST

    In the themes designer, you have C1Ribbon.Form.Title.ActiveTextColor and C1Ribbon.Form.Title.InactiveTextColor.

    Whe have some forms where the parent of the form is a panel. That always makes the form as inactive. I would like to set the text of the form title bar to the Active text color, even when it is technically inactive.

    How to set different parts of the GUI to specific themes settings, overriding for example active/inactive text settings?

    Thanks in advance

    //Peter

  • Posted 6 November 2023, 8:18 pm EST

    Please, answers in VB.NET :slight_smile:

  • Posted 7 November 2023, 7:59 pm EST

    Hi,

    Thanks for reaching out to us with your query.

    You can achieve your requirements by setting RibbonStyles as:

     c1Ribbon1.RibbonStyle.ColorSet(StyleColor.FormInactiveTitleText) = Color.Red
     c1Ribbon1.RibbonStyle.ColorSet(StyleColor.FormActiveTitleText) = Color.Red

    Please refer to the attached sample for the same: RibbonThemesTest.zip

    Best Regards,

    Nitin

  • Posted 8 November 2023, 6:07 pm EST

    Thanks!

Need extra support?

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

Learn More

Forum Channels