setEnabled and lost focus [message #459060] |
Fri, 29 July 2005 16:51 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03553 seconds