underline a letter in the label of an uimenu object

7 次查看(过去 30 天)
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 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by