How to change color of "Edit text" in the Gui

7 Ansichten (letzte 30 Tage)
Lucas
Lucas am 27 Mär. 2014
Bearbeitet: Walter Roberson am 18 Mai 2016
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

Antworten (1)

Walter Roberson
Walter Roberson am 27 Mär. 2014
  5 Kommentare
Walter Roberson
Walter Roberson am 27 Mär. 2014
Bearbeitet: Walter Roberson am 27 Mär. 2014
What happened instead?
Have you confirmed that the body of the "if" is being entered?
Harshit  Gupta
Harshit Gupta am 18 Mai 2016
I used 'ForegroundColor' instead of 'Foreground' and it did change color.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by