Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » difference between focusin and activation events
difference between focusin and activation events [message #452301] Thu, 17 March 2005 09:04 Go to next message
Francis Leboutte is currently offline Francis LeboutteFriend
Messages: 19
Registered: July 2009
Junior Member
Hello,

What is the purpose of the the activation event? When should I use this
event instead of the focusin event? (and deactivation instead of
focusout). I can't see any difference between both: each time there is
focusin event it seems there is an activation event (I have tested this
on a button control, using the mouse, the tab and alt-tab - on Windows).

I haven't been able to find documentation details about activation event
(even in the 2 books from Rob Warner and Steve Northover).

Thanks,

Francis
Re: difference between focusin and activation events [message #452310 is a reply to message #452301] Thu, 17 March 2005 12:38 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
There are several differences

1) A parent (by parent I mean any parent in the parent hierarchy not just
the immediate parent) will receive an activation event the first time one of
its children gets focus. (As focus moves between children of the same parent
additional activation events are not sent).
2) It is not neccessary for focus to be assigned for the activation event to
occur - if a user clicks on the background of a Composite or Canvas or on a
widget such as a Label that does not take focus, an activation event will
still be sent.

"FL" <f.leboutte@algo.be> wrote in message
news:d1bh7b$qno$1@www.eclipse.org...
> Hello,
>
> What is the purpose of the the activation event? When should I use this
> event instead of the focusin event? (and deactivation instead of
> focusout). I can't see any difference between both: each time there is
> focusin event it seems there is an activation event (I have tested this on
> a button control, using the mouse, the tab and alt-tab - on Windows).
>
> I haven't been able to find documentation details about activation event
> (even in the 2 books from Rob Warner and Steve Northover).
>
> Thanks,
>
> Francis
Re: difference between focusin and activation events [message #452345 is a reply to message #452310] Thu, 17 March 2005 16:55 Go to previous messageGo to next message
Francis Leboutte is currently offline Francis LeboutteFriend
Messages: 19
Registered: July 2009
Junior Member
Veronika Irvine a écrit :

> There are several differences

Thank you, it helps a lot.

BTW, what is the best way to search into the archives of this group
where I should find a lot of hints (I'm new to SWT and Eclipse). It
seems that Google doesn't know this group.

FL

>
> 1) A parent (by parent I mean any parent in the parent hierarchy not just
> the immediate parent) will receive an activation event the first time one of
> its children gets focus. (As focus moves between children of the same parent
> additional activation events are not sent).
> 2) It is not neccessary for focus to be assigned for the activation event to
> occur - if a user clicks on the background of a Composite or Canvas or on a
> widget such as a Label that does not take focus, an activation event will
> still be sent.
>
> "FL" <f.leboutte@algo.be> wrote in message
> news:d1bh7b$qno$1@www.eclipse.org...
>
>>Hello,
>>
>>What is the purpose of the the activation event? When should I use this
>>event instead of the focusin event? (and deactivation instead of
>>focusout). I can't see any difference between both: each time there is
>>focusin event it seems there is an activation event (I have tested this on
>>a button control, using the mouse, the tab and alt-tab - on Windows).
>>
>>I haven't been able to find documentation details about activation event
>>(even in the 2 books from Rob Warner and Steve Northover).
>>
>>Thanks,
>>
>>Francis
>
>
>
Re: difference between focusin and activation events [message #452348 is a reply to message #452345] Thu, 17 March 2005 17:34 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You can use the eclipse.org search page:

http://eclipse.org/search/search.cgi

The newsgroup is password protected so it doesn't show up in a Google
search.

Also there are many SWT code examples on our snippets page:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets


"Francis Leboutte" <f.leboutte@algo.be> wrote in message
news:d1ccq5$m1u$1@www.eclipse.org...
> Veronika Irvine a
Previous Topic:Larger image problems
Next Topic:Change Button Label on PrintDialog
Goto Forum:
  


Current Time: Sun Nov 17 04:37:24 GMT 2019

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

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

Back to the top