MATLAB Answers

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

13 ビュー (過去 30 日間)
xi
xi 2017 年 4 月 28 日
回答済み: Prannay Jain 2017 年 5 月 2 日
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 件のコメント

サインイン to comment.

回答 (1 件)

Prannay Jain
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 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by