Possible to change the Foreground Color of individual lines of a listbox??

15 ビュー (過去 30 日間)
Jay
Jay 2012 年 5 月 8 日
Hello,
I have a listbox with a few strings that I'd like to change the color of in order to indicate status. Is it possible to assign different foreground colors to different strings?
Thanks in advance!
Also note, I'm in 2007b if it makes a difference.

回答 (1 件)

Jay
Jay 2012 年 5 月 8 日
Found my answer here:
Which recommended:
uicontrol('Style','list', 'Position',[10,10,70,70], 'String', ...
{'<HTML><FONT color="red">Hello</Font></html>', 'world', ...
'<html><font style="font-family:impact;color:green"><i>What a', ...
'<Html><FONT color="blue" face="Comic Sans MS">nice day!</font>'});

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by