필터 지우기
필터 지우기

underline a letter in the label of an uimenu object

조회 수: 2 (최근 30일)
Christophe
Christophe 2011년 12월 9일
Hello !
Is it possible to underline a letter in the label of an uimenu object ?

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 12월 9일
It doesn't appear to be possible since there is no 'interpretter' option (the ability to add LaTeX).
(Though you use a 'separator' as a kind of underline) From the doc for uimenu:
f = uimenu('Label','Workspace');
uimenu(f,'Label','New Figure','Callback','figure');
uimenu(f,'Label','Save','Callback','save');
uimenu(f,'Label','Quit','Callback','exit',...
'Separator','on','Accelerator','Q')

추가 답변 (2개)

Walter Roberson
Walter Roberson 2011년 12월 9일
Menu label. A string specifying the text label on the menu item. You can specify a mnemonic for the label using the '&' character. Except as noted below, the character that follows the '&' in the string appears underlined and selects the menu item when you type Alt+ followed by that character while the menu is visible.
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 12월 9일
Yes! I had those '&' in my menu but I couldn't find the underline characters this morning.

댓글을 달려면 로그인하십시오.


Christophe
Christophe 2011년 12월 9일
Thank all for your answer.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by