Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » setEnabled and lost focus
setEnabled and lost focus [message #459060] Fri, 29 July 2005 16:51 Go to next message
Eclipse UserFriend
Originally posted by: jan.infomail.ch

Hi,

I have a window with a Compostite containing several Widgets.
I need to disable the entire Composite while waiting for net i/o. When
the data has arrived I enable the entire Composite again.
My problem is that the current focus seems to go away when I disable the
Composite and I can't find a way to get the Widget that currently has
the focus.

Any ideas?

Thanks

Jan Petersen
Re: setEnabled and lost focus [message #459065 is a reply to message #459060] Fri, 29 July 2005 20:14 Go to previous message
Eclipse UserFriend
Originally posted by: jan.infomail.ch

Found the solution myself by digging into SWT code.

Display has a method called getFocusControl() which is what I was
looking for.

Thanks

Jan


Jan Petersen wrote:
> Hi,
>
> I have a window with a Compostite containing several Widgets.
> I need to disable the entire Composite while waiting for net i/o. When
> the data has arrived I enable the entire Composite again.
> My problem is that the current focus seems to go away when I disable the
> Composite and I can't find a way to get the Widget that currently has
> the focus.
>
> Any ideas?
>
> Thanks
>
> Jan Petersen
Previous Topic:SWT GUI Builder Properties Table
Next Topic:Missing Label and Button Text in SWT
Goto Forum:
  


Current Time: Fri Oct 30 04:49:56 GMT 2020

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

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

Back to the top