Another event issue

Hi,

On my dialog if I press "enter/return" in some of the controls I see the following events:

EVT_CHAR_HOOK
EVT_ACTIVATE
EVT_CHILD_FOCUS - always goes to "search" button

and the "search" button handler is called.

I understand the EVT_CHAR_HOOK but why do I get EVT_ACTIVATE and EVT_CHILD_FOCUS, o.k. the last one I can also understand if I press enter in the last control (which goes then to the first control which is the search button) but it also happens when I am in other controls where enter should really just do a tab - no?

Werner