Hi Team,
I want to change the backcolor(color is known during run-time, and could be changed) of popup title bar in our application.
As of now, the underlying Form has UltraToolbarsManager, and we use the stylesheet role "RibbonCaptionArea" to set the normal backcolor. But in our application, we have no access to this "UltraToolbarsManager"(it's wrappered in our GUI framework). We're able to set the text of the title bar.
Now we need to change the color of the title bar during run-time.
1. Is there a way that we could overwrite the "RibbonCaptionArea" just for one popup title bars? I don't want to apply the color to all title bars.
2. Or is there other way that we could use to change the title bar color?
3. As an alternative, I tried html kind of code as the title text to change the backcolor of the title text(it's not the backcolor of the title bar, would have to use this method if I can't change the title bar color). But for this one, how can I append multiple whitespaces to the title text?(iThey're always combined into one whitespace)
For example: Title = "<span style='background-color:Red; color:Black; font-size:12pt; white-space:pre;'>Testing </span>"
Thanks,
Shirley
Hello Shirley,
Thank you for contacting Infragistics Developer Support.
Generally you could change this the following ways:
1.Setting the Ribbon.CaptionArreaAppearance.BackColor property
2.Using the StyleLibraryName in order to assign a specific .isl file to it
3.Using the DrawFilter interface
If you don’t have access to any of these properties, you can use the Title property. You can use the nsbp; symbol in order to add additional whitespaces.
<span style="color:Black; background-color:Red; font-size:12pt;">Testing </span>
Please let me know if you have any additional questions.
Hi Dimitar,
Thanks for the prompt reply.
Unfortunately I was only able to try the Title property, but it also looks a bit weird. The height of the space part is different from the part with words.
Pls refer to the attachment.