May 26, 2008
When using a listener to listen for a press of the enter key I want to
move to the next control
SWT.TRAVERSE_TAB_NEXT is supposed to do it but the compiler gives me
errors

DWT.di(746): Error: long has no effect in expression (16)

The detail from DWT is
static const int TRAVERSE_TAB_NEXT  ;
Traversal event detail field value indicating that the key which
designates that focus should be given to the next tab group was
pressed; typically, this is the TAB key (value is 1<<4).

How do I make it move to the next field (in a tableitem -row)on
hitting the Enter key ?
The tab key does this but I want it done by the enter key
May 28, 2008
在 Tue, 27 May 2008 03:42:35 +0800,Tower Ty <towerty@msn.com.au> 写道:

> When using a listener to listen for a press of the enter key I want to
> move to the next control
> SWT.TRAVERSE_TAB_NEXT is supposed to do it but the compiler gives me
> errors
>
> DWT.di(746): Error: long has no effect in expression (16)
>
> The detail from DWT is
> static const int TRAVERSE_TAB_NEXT  ;
> Traversal event detail field value indicating that the key which
> designates that focus should be given to the next tab group was
> pressed; typically, this is the TAB key (value is 1<<4).
>
> How do I make it move to the next field (in a tableitem -row)on
> hitting the Enter key ?
> The tab key does this but I want it done by the enter key

Upload your example? so people can directly work on your example to figure out what on earth is going on.

-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/