How to change color of "Edit text" in the Gui
7 views (last 30 days)
Show older comments
Well, I was programming my interface and it has various input data, in specific case, depending on input's value, my GUI shows in answer a string. I'm trying to show this text with other color, to call attention to this information, I tried to use some If programing but doesn't work, the answer always shows the same color.
Guys, Could you help me on this problem?
I'll show here for you understand what i'm saying
if ha==0
cabs1 = 'VÁCUO';
set(handles.CABS,'string',cabs1);
end
I need to show this text VACUO in red, help me plz;
Thanks
0 Comments
Answers (1)
Walter Roberson
on 27 Mar 2014
Foreground property.
5 Comments
Walter Roberson
on 27 Mar 2014
Edited: Walter Roberson
on 27 Mar 2014
What happened instead?
Have you confirmed that the body of the "if" is being entered?
Harshit Gupta
on 18 May 2016
I used 'ForegroundColor' instead of 'Foreground' and it did change color.
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!