This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GUI composer How to change textbox widget font color based on value

 Hello,  (Code Composer 6.0.1.00040)

I have a working gui composer application that makes heavy use of the simple textbox widget to display numerical values from the TI target processor.

I am using the pre and post processing functions to scale the value OK, and the format function (e.g. %.03f)

The color setting in the fonts/text part of the widget settings appears to be fixed.

Is there a way to change the font color based on a test of the global value?

e.g. some logic like below (value is global variable read from target)

if (value > 4.1) setFontColor(Red)

else if (value < 3.6) setFontColor(Green)

else {} // do nothing, use the default widget font color setting.

If not in GUI composer, then by modifying the html, json or other project files directly?

Regards,

Richard

PS I'd like to suggest creating a separate GUI composer forum for easier learning from existing topics.

  • Richard Jones28 said:

    The color setting in the fonts/text part of the widget settings appears to be fixed.

    Is there a way to change the font color based on a test of the global value?

    I haven't been able to find a way to do this yet, but I am checking with some engineers and will let you know when I get more information.