Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Composite-wide, deep focus?
Composite-wide, deep focus? [message #451662] Fri, 04 March 2005 15:39 Go to next message
Aaron Siri is currently offline Aaron SiriFriend
Messages: 33
Registered: July 2009
Member
Is there any mechanism to detect if a composite or any child of a
composite has been given focus without having to explicitly add
FocusListeners to every component?

-Aaron
Re: Composite-wide, deep focus? [message #451664 is a reply to message #451662] Fri, 04 March 2005 16:52 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
There are the SWT.Activate and SWT.Deactivate events. This is a bit more
than just focus but may be what you require. For example, if the user
clicks in the dead space in the background of a composite (not in a child
widget that can take focus but just in some background region) you will get
the Activate event in addition to getting the Activate event when a child
(or a child of a child of a child) gets focus.

"Aaron Siri" <aaron.siri@efi.com> wrote in message
news:d09vg7$m6a$1@www.eclipse.org...
> Is there any mechanism to detect if a composite or any child of a
> composite has been given focus without having to explicitly add
> FocusListeners to every component?
>
> -Aaron
Previous Topic:OleAutmation help
Next Topic:Checkbox rendered in Table Cells
Goto Forum:
  


Current Time: Fri Apr 19 20:46:35 GMT 2024

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

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

Back to the top