필터 지우기
필터 지우기

GUI

조회 수: 2 (최근 30일)
Ean Soo
Ean Soo 2011년 3월 21일
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

채택된 답변

Matt Fig
Matt Fig 2011년 3월 21일
Yes, set the foregroundcolor property to the color you want.
set(handles.Ball,'string','Danger Defect at','foregroundcolor','r')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by