How to change the color of "partial" text in gui static text
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Prannay Jain
2017-5-2
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!