appdesigner listbox item does not recognize HTML tags

Unfortunately, this command does not change the color of the first item (named "XXX") in my appdesigner UI Liastbox!
app.ListBox_Test.Items{1} = '<html><font color="red"> XXX </font></html>'
It works fine in GUIDE but not in appdesigner!
This link clarifies that this feature is still not availble in appdesgner for liastbox:
Any syggestion or work around to make this feature work in appdesigner?

回答 (1 件)

Cris LaPierre
Cris LaPierre 2018 年 12 月 12 日
編集済み: Cris LaPierre 2018 年 12 月 12 日

0 投票

That is correct. Check out the documentation page to see valid formatting options.
You would need to use code like this to change the font color (changes it for all items in the list):
app.ListBox.FontColor = 'r';

2 件のコメント

Alborz Sakhaei
Alborz Sakhaei 2018 年 12 月 12 日
編集済み: Alborz Sakhaei 2018 年 12 月 12 日
I would like to change the color of specific items (not the entire items) in my listbox. That was the reason I chose using HTML format which works fine in GUIDE listboxes but not in appdesginer listbox.
Cris LaPierre
Cris LaPierre 2018 年 12 月 12 日
See a response from tech support about this here.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

質問済み:

2018 年 12 月 12 日

コメント済み:

2018 年 12 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by