Change the text color of each string in a uicontrol
조회 수: 11 (최근 30일)
이전 댓글 표시
There is no problem to set a whole-cell color in the text uicontrol
but I have Your Text cell is 6*1 and I want to set particular row only with different color
I want it only set way to make a colour different in particular cell row......
guide me?
hh=uicontrol('Style','text','Position', [7 20 95 20],'String','Your Text....')
set(hh,'ForegroundColor','blue'); % its for all rows in same colour
Thanks
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 8월 3일
This cannot be done for uicontrol style text or edit at the MATLAB level. The only way is at the Java level. See undocumentedmatlab.com for that.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!