How to change the
Afficher commentaires plus anciens
Hi, i am creating a comment box wich could list all the comments from different functions, So for that i have taken "boxy" as global parameter. But i need to change the editbox comments color based upon "warning" (orange) and "error" (red).
When i try to alter the color for specific line, it automatically alters the color of all the lines. see attachment for better understanding.
Below script for reference purpose not the original script.
My actual need is when i alter the colorstring to "red", the the specific line alone need to change "red" not the every line.


Pushbutton1 ---> comment box
edit1 --> edit box

2 commentaires
Rik
le 30 Oct 2020
I don't see why you need a global variable.
To answer your question: I am not aware that it is possible to set the color of specific lines. You could hack it by using an axes object with text objects.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects 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!