Underline Text in Gui
    9 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi All
N.Class = uicontrol('unit','pix',...
  'style','text',...
  'position',[0 405 340 30],...
  'string','Hello',...
  'horizon','center',...
  'fontwei','normal',...     ****underline ???
  'FontName','Verdana',...
  'backg',[0 0 0],...
  'fontsize',8);
How do I ?
Thnks.
0 件のコメント
回答 (2 件)
  Jan
      
      
 2012 年 2 月 6 日
        H = uicontrol('Style', 'PushButton', ... 
              'String', '<u>Underline</u>');
1 件のコメント
  Ralph
 2020 年 10 月 28 日
				For anyone reading this in 2020 (or perhaps other versions):
You need to include the <html> tags in the string for this mechanism to work. So its:
H.String = '<html><u>control label</u></html>';
  Sean de Wolski
      
      
 2012 年 2 月 6 日
        text(3,10,'\underline{Hello World}','interp','latex')
axis([0 20 0 20])
I can't seem to find a way to to this for a uicontrol string, though I'm sure there is a way.
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Language Support についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



