Menu title symbolic key names? [message #454619] |
Tue, 26 April 2005 01:17 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
In Snippet29 the lines appear:
item.setText ("Select &All\tCtrl+A");
item.setAccelerator (SWT.CTRL + 'A');
The \tCtrl+A is ignored on the Mac (and some other platforms?) but
required on Windows if you want to see anything in the menu item.
However, it's not obvious how to specify some keys, like the arrow keys
(Left, Right, etc.), the keypad keys like keypad-0, etc., the backspace,
delete keys, and so on. Does it matter how they are specified or is the
text just copied to the right side of the item? If it doesn't matter
programmatically, there must still be a style guide somewhere. If it
does, there must be a list. Looking for one or the other.
Thanks.
Bob
|
|
|
Re: Menu title symbolic key names? [message #454836 is a reply to message #454619] |
Fri, 29 April 2005 21:48 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
Dare I hope for a response? Maybe it is a dumb question and maybe I'm an
old dog who should know better, but I still don't know the answer. Thanks.
Bob
Bob Foster wrote:
> In Snippet29 the lines appear:
>
> item.setText ("Select &All\tCtrl+A");
> item.setAccelerator (SWT.CTRL + 'A');
>
> The \tCtrl+A is ignored on the Mac (and some other platforms?) but
> required on Windows if you want to see anything in the menu item.
>
> However, it's not obvious how to specify some keys, like the arrow keys
> (Left, Right, etc.), the keypad keys like keypad-0, etc., the backspace,
> delete keys, and so on. Does it matter how they are specified or is the
> text just copied to the right side of the item? If it doesn't matter
> programmatically, there must still be a style guide somewhere. If it
> does, there must be a list. Looking for one or the other.
>
> Thanks.
>
> Bob
>
|
|
|
Powered by
FUDForum. Page generated in 0.03225 seconds