underline a letter in the label of an uimenu object
3 ビュー (過去 30 日間)
古いコメントを表示
Hello !
Is it possible to underline a letter in the label of an uimenu object ?
0 件のコメント
採用された回答
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')
0 件のコメント
その他の回答 (2 件)
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
2011 年 12 月 9 日
Yes! I had those '&' in my menu but I couldn't find the underline characters this morning.
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!