Skip to main content
Participant
January 7, 2013
Question

Change title text color of a panel

  • January 7, 2013
  • 1 reply
  • 852 views

Hello

I am having a scenario wherein I have to color change only a part of my text in my panel title.

Example:

Title.text = "Report filters          Report name";

where 'Report filters' should be color black

'Report name' should be in orange.

Can someone help me in achieveing this. Thanks!

Regards

Mathangi

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
January 7, 2013

You can try assigning the text using the htmlText property and use html tags to color the text.  You could also probably set the text format for sections of the text based on selection sections, though that could be more challenging for you than using the htmlText approach.

Participant
January 7, 2013

Hello Ned

As I havent worked on htmlText earlier, though I tried with some sample codes, I am getting error. Will it possible to share with me an example.

Otherwise, I tried defining the report name as Text (txt1), and used setStyle property to define the orange color. When I added the txt1 to the panel as a child component, I am getting the color, whereas the same displayed as panel.title text, the color is not considered. So I feel, its like setting on panel title is not working correctly.

Regards

Mathangi

Ned Murphy
Legend
January 7, 2013

You should show the code thatyou tried that doesn't work for you.