appdesigner listbox item does not recognize HTML tags

조회 수: 3 (최근 30일)
Alborz Sakhaei
Alborz Sakhaei 2018년 12월 12일
댓글: Cris LaPierre 2018년 12월 12일
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일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by