MATLAB Answers

How to change the color of "partial" text in gui static text

19 views (last 30 days)
xi
xi on 28 Apr 2017
Answered: Prannay Jain on 2 May 2017
For example, I want to display a string of 'ABCDE' in the static text box, and want to highlight C with red color or bold font. How to do that? By setting the "ForegroundColor", or "Font" property, it would change the whole string, but I want to apply to partial of the string. ideas?

  0 Comments

Sign in to comment.

Answers (1)

Prannay Jain
Prannay Jain on 2 May 2017
Unfortunately, currently this is not possible to change the color of "partial" text in gui static text. You may think of adding different strings of single characters with different colors and fonts.

  0 Comments

Sign in to comment.

Tags


Translated by