[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52853] Broken ui dialogs by ampersands insert
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #52853] Broken ui dialogs by ampersands inserted into button texts (KDE) |
Date: |
Thu, 11 Jan 2018 13:14:23 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #2, bug #52853 (project octave):
Conceptually, I like approach 2 a bit more. Which sort of programmer has to
be aware of this? Is it someone writing in the Octave language and using
uimenu, or is it more like core developers writing in C++? If it is a the
second smaller set then it is probably okay.
The documentation says that users must use doubled ampersands if they want a
single ampersand in the menu field.
http://www.mathworks.com/help/matlab/ref/matlab.ui.container.menu-properties.html#property_d119e1093041
Menu label, specified as a character vector. This property specifies the label
that appears on the menu (or menu item).
You can specify a mnemonic for the label using the ampersand (&) character.
The character that follows the ampersand appears underlined in the menu. The
user can select the menu item by pressing the Alt key followed by the
underlined character.
In order for the mnemonic system to work, you must specify a mnemonic for all
menu items you define in the UI.
If you want to display an ampersand in the menu label, specify two consecutive
ampersands.
So I think your method #1 is possibly the way Matlab does things.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52853>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/