appdesigner listbox item does not recognize HTML tags
6 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Cris LaPierre
2018-12-12
编辑:Cris LaPierre
2018-12-12
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 个评论
另请参阅
类别
在 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!