Filter löschen
Filter löschen

GUI

2 Ansichten (letzte 30 Tage)
Ean Soo
Ean Soo am 21 Mär. 2011
Hie guys, i have a GUI. I have an edit text. and i program it like below,
***********************************
if (y_Ball<0.05)
set(handles.Ball,'String','No defect at')
set(handles.l1,'string',LL1);
elseif (y_Ball>=0.05 && y_Ball<0.075)
set(handles.Ball,'String','Alert Defect at')
set(handles.l1,'string',LL1)
else
set(handles.Ball,'string','Danger Defect at')
set(handles.l1,'string',LL1)
end;
******************************************* Is it possible that i want the color of the fonts at this command (set(handles.Ball,'string','Danger Defect at') ) to change to others color?
Regards,
EAN

Akzeptierte Antwort

Matt Fig
Matt Fig am 21 Mär. 2011
Yes, set the foregroundcolor property to the color you want.
set(handles.Ball,'string','Danger Defect at','foregroundcolor','r')

Weitere Antworten (0)

Kategorien

Mehr zu Just for fun finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by