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!