Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Focus Issue
Focus Issue [message #1008047] Fri, 08 February 2013 16:07 Go to next message
Nick Collier is currently offline Nick Collier
Messages: 20
Registered: July 2009
Junior Member
I've got a composite whose first control is a text control followed by some buttons and then some multiline text controls. If nothing in the composite has focus and I click in one of the multi line text controls, the multiline text control gets focus, then loses it and the first text control gains focus. Focus never goes back to the text control where the click occurs. I can force it back by listening for the mouse click but that results in some jumpy behavior if the first control has scrolled off the composite. So, how do I get the focus to stay where it belongs?

thanks,

Nick

[Updated on: Fri, 08 February 2013 16:17]

Report message to a moderator

Re: Focus Issue [message #1015717 is a reply to message #1008047] Fri, 01 March 2013 21:29 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
Hi Nick, sorry for the late response,

This should not happen, there must either be an swt bug (though I've
never heard of this before), or perhaps your code is doing something to
inadvertently cause this? Are you able to make a snippet (ideal
template: http://www.eclipse.org/swt/faq.php#whatisasnippet ) that
demonstrates the problem? And which platform do you see this on?

Grant


On 2/8/2013 11:07 AM, Nick Collier wrote:
> I've got a composite whose first control is a text control followed by
> some buttons and then some multiline text controls. If nothing in the
> composite has focus and I click in one of the multi line text controls,
> the multiline text control gets focus, then loses it and the first text
> control gains focus. Focus never goes back to the text control where the
> click occurs. I can force it back by listening for the mouse click but
> that results in some jumpy behavior if the first control has scrolled
> off the composite. So, how do I get the focus to stay where it belongs?
>
> thanks,
>
> Nick
Previous Topic:Virtual TableViewer sorting causes selection problems
Next Topic:Setting specific background and border colors to buttons
Goto Forum:
  


Current Time: Sat Oct 25 07:57:40 GMT 2014

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

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