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

15 visualizaciones (últimos 30 días)
xi
xi el 28 de Abr. de 2017
Respondida: Prannay Jain el 2 de Mayo de 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?

Respuestas (1)

Prannay Jain
Prannay Jain el 2 de Mayo de 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.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by