Selection color in uicontrol listbox
Afficher commentaires plus anciens
Hey all!
I'm wondering if there is a way to control the highlight selection color (currently blue) in a list box? See attached example.
TIA!
Trevor
1 commentaire
Réponse acceptée
Plus de réponses (1)
Keqin Xu
le 31 Oct 2019
0 votes
Trouble is, when there are "<" in the string, the "<" are missing in the listbox!
Any ideas to fix it? Thanks!
1 commentaire
Joris Lambrecht
le 2 Juin 2020
I use the following little function:
function htmlStr = formatHTML(str)
% FORMATHTML converts < and > to HTML codes
htmlStr = strrep(str, '<', '<');
htmlStr = strrep(htmlStr, '>', '>');
end
Catégories
En savoir plus sur App Building dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!