Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » prevent Exit Event from Text
prevent Exit Event from Text [message #454162] Mon, 18 April 2005 15:14 Go to next message
Eclipse UserFriend
Originally posted by: ragnoni.libero.it

How to prevent exit event from a Text control?
I need to verify the text written in the control, when the user leaves the
Text control.
Which events do i have intercept?
Thanks,
Gianluca
Re: prevent Exit Event from Text [message #454170 is a reply to message #454162] Mon, 18 April 2005 17:58 Go to previous message
Eclipse UserFriend
Originally posted by: doug-list.threepenny.net

Loss of focus and traverse events seem to be the key.

Look at snippet 124 for an example of placing a text control in a table
for editing. They need to detect when the user is done with entering
text in that case too so it shows the event handling:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet124.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

Doug

Gianluca wrote:

> How to prevent exit event from a Text control?
> I need to verify the text written in the control, when the user leaves
> the Text control. Which events do i have intercept? Thanks,
> Gianluca
Previous Topic:Efficient tree or TreeItem navigation
Next Topic:Text validation and setting focus
Goto Forum:
  


Current Time: Mon Mar 08 01:09:06 GMT 2021

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

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

Back to the top