Filter löschen
Filter löschen

underline a letter in the label of an uimenu object

2 Ansichten (letzte 30 Tage)
Christophe
Christophe am 9 Dez. 2011
Hello !
Is it possible to underline a letter in the label of an uimenu object ?

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 9 Dez. 2011
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')

Weitere Antworten (2)

Walter Roberson
Walter Roberson am 9 Dez. 2011
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 Kommentar
Fangjun Jiang
Fangjun Jiang am 9 Dez. 2011
Yes! I had those '&' in my menu but I couldn't find the underline characters this morning.

Melden Sie sich an, um zu kommentieren.


Christophe
Christophe am 9 Dez. 2011
Thank all for your answer.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by