Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT constant for the SPACE bar
SWT constant for the SPACE bar [message #461866] Mon, 03 October 2005 22:53 Go to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi,

Does anyone know what is the SWT constant for the SPACE bar? Such as CR
for <ENTER> key, BS for the backspace key, and so on. I couldn't seem to
find one for the SPACE bar. If there is none, how could I check whether
the space bar is pressed in my SWT dialog?

Thanks.
skl
Re: SWT constant for the SPACE bar [message #461914 is a reply to message #461866] Tue, 04 October 2005 14:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

The decimal ASCII code for Space is 32. Check for this charactor (plus
additional modifier keys).

Hope that helped,
Friederich

skl wrote:
> Hi,
>
> Does anyone know what is the SWT constant for the SPACE bar? Such as CR
> for <ENTER> key, BS for the backspace key, and so on. I couldn't seem
> to find one for the SPACE bar. If there is none, how could I check
> whether the space bar is pressed in my SWT dialog?
>
> Thanks.
> skl
>


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
Re: SWT constant for the SPACE bar [message #462041 is a reply to message #461914] Wed, 05 October 2005 02:00 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
SWT provides constants for the non-printable ascii characters. Just use ' '
for SPACE.

"Friederich Kupzog" <friederich@kupzog.de> wrote in message
news:dhu364$aba$1@news.eclipse.org...
> The decimal ASCII code for Space is 32. Check for this charactor (plus
> additional modifier keys).
>
> Hope that helped,
> Friederich
>
> skl wrote:
> > Hi,
> >
> > Does anyone know what is the SWT constant for the SPACE bar? Such as CR
> > for <ENTER> key, BS for the backspace key, and so on. I couldn't seem
> > to find one for the SPACE bar. If there is none, how could I check
> > whether the space bar is pressed in my SWT dialog?
> >
> > Thanks.
> > skl
> >
>
>
> --
> Friederich Kupzog
> Elektronik & Software
> Neusser Str. 5-7
> 50670 K
Previous Topic:TreeItem, background color, plus/minus sign
Next Topic:Create new widget or canvas ?
Goto Forum:
  


Current Time: Tue May 07 12:54:32 GMT 2024

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

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

Back to the top