Mouse Event Handling: Overlapping Controls
Hi
I have a panel which includes some controls.
Now I want the panel to hide if the mouse leaves its area.
But the mouseleave event is also fired when I hover the controls in it.
Is there some way to alter this behaviour,
for example that the child control in the panel passes the mousemovement to its parent,
so the parent (the panel) knows the mouse is still in its area?
I know some easy way to verify if the mouse is still in it,
but it would still be interesting to know if this is possible,
since this behaviour changes between different events.
I can for example add a handler for the Drag&Drop event of the form and
it also works if I "indirectly" drop something onto the Form child controls.
Hi
I have a panel which includes some controls.
Now I want the panel to hide if the mouse leaves its area.
But the mouseleave event is also fired when I hover the controls in it.
Is there some way to alter this behaviour,
for example that the child control in the panel passes the mousemovement to its parent,
so the parent (the panel) knows the mouse is still in its area?
I know some easy way to verify if the mouse is still in it,
but it would still be interesting to know if this is possible,
since this behaviour changes between different events.
I can for example add a handler for the Drag&Drop event of the form and
it also works if I "indirectly" drop something onto the Form child controls.
Last edited: