Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Menu title symbolic key names?
Menu title symbolic key names? [message #454619] Tue, 26 April 2005 01:17 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Print the Browser widget
Next Topic:SWT for Palm OS again
Goto Forum:
  


Current Time: Sat Apr 20 12:54:26 GMT 2024

Powered by FUDForum. Page generated in 0.03225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top