Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Accelerator key for a widget placed before a label?
Accelerator key for a widget placed before a label? [message #650303] Mon, 24 January 2011 10:19
Nikita is currently offline NikitaFriend
Messages: 12
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0007_01CBBBDE.518510C0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0008_01CBBBDE.518510C0"


------=_NextPart_001_0008_01CBBBDE.518510C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I have 3 buttons (SWT.Push), one below the other. There is a label =
beside each button. I want to define accelerator keys for each of these =
3 buttons. However, as far as I know, an accelerator key defined by =
adding a '&' before the character in a label will work on the widget =
that follows the label. Is there any way by means of which I can get it =
to work on the widget before the label?

For eg. In the image below, I want the accelerator key 'e' to work on =
the first button, 'y' on the second button and 'l' on the third button. =
Is there any way to do this?




Regards,
Nikita
------=_NextPart_001_0008_01CBBBDE.518510C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.6049" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD><FONT face=3DArial><FONT size=3D2>
<BODY>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have 3 buttons (SWT.Push), one below the other. There is a label =
beside=20
each button. I want to define accelerator keys for each of these 3 =
buttons.=20
However, as far as I know, an accelerator key defined by adding a =
'&amp;' before=20
the character in a label will work on the widget that follows the label. =
Is=20
there any way by means of which I can get it to work on the widget =
before the=20
label?</DIV>
<DIV>&nbsp;</DIV>
<DIV>For eg. In the image below, I want the accelerator key 'e' to work =
on the=20
first button, 'y' on the second button and 'l' on the third button. Is =
there any=20
way to do this?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><IMG alt=3D"" hspace=3D0=20
src=3D"cid:9D2EAB50FD284806933F994EECF061C4@IBMEE6A7F97B75" =
align=3Dbaseline=20
border=3D0></DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Nikita</DIV></BODY></HTML></FONT></FONT>

------=_NextPart_001_0008_01CBBBDE.518510C0--

------=_NextPart_000_0007_01CBBBDE.518510C0
Content-Type: image/jpeg;
name="acc keys prob.JPG"
Content-Transfer-Encoding: base64
Content-ID: <9D2EAB50FD284806933F994EECF061C4@IBMEE6A7F97B75>

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL DBkSEw8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgN DRgyIRwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/ wAARCABWAN4DASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA AgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcY GRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKT lJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP0 9fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQA AQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2 Nzg5OkNERUZHSElK
U1RVVldYWVpjZ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RRQAUUUUAFFFFABRRRQAUU UUAFFFFABRRRQAUU
UUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRR QAUUUUAFFFFABRRR
QAUUUUAFFFFAH//Z

------=_NextPart_000_0007_01CBBBDE.518510C0--
Previous Topic:SashForm children width
Next Topic:How to deploy SWT with Java webstart for Mac OS x
Goto Forum:
  


Current Time: Sun Nov 23 08:56:48 GMT 2014

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

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