Changing default traversal in a text control?

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Changing default traversal in a text control?

Postby howieb » Tue Jun 05, 2007 6:57 am

I want to change the default traversal for tab and return to go to the next control in the tab order. Is there a way to do this in the designer?
howieb
 
Posts: 7
Joined: Tue May 29, 2007 6:07 pm

Re: Changing default traversal in a text control?

Postby Eric Clayberg » Tue Jun 05, 2007 7:38 am

howieb wrote:I want to change the default traversal for tab and return to go to the next control in the tab order. Is there a way to do this in the designer?

I'm not entirely sure what you are asking, but you can change the tab order of widgets in the window you are editing by clicking on the Tab Order command in the palette.

Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby howieb » Tue Jun 05, 2007 9:59 am

I should have been more specific... The default for a multi-line text control is that the return and tab keystrokes add those characters to the text. I would rather have tab traverse to the next control in the tab order, and return execute the default button.

Normally I would do this by getting the keystroke events. I was just wondering if this functionality was "packaged" somehow in the designer.
howieb
 
Posts: 7
Joined: Tue May 29, 2007 6:07 pm

Postby Eric Clayberg » Wed Jun 06, 2007 6:28 am

howieb wrote:I should have been more specific... The default for a multi-line text control is that the return and tab keystrokes add those characters to the text. I would rather have tab traverse to the next control in the tab order, and return execute the default button. Normally I would do this by getting the keystroke events. I was just wondering if this functionality was "packaged" somehow in the designer.

Designer does not provide any extra runtime behavior like that, so you are limited to what SWT can do itself. Under Windows, Ctrl+Tab will tab you out of a multi-line text widget. If you capture kesytoke events in the test widget, you can, of course, do anything that you like.

For general SWT how-to questions, you might also try the Eclipse SWT newsgroup.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests