Mouse Leave event in Firemonkey 10.3


I have a form with a control (myControl) and a child control (myChildControl).

I want to manage the mouse exit on myControl so that I can take some actions.

The problem is that the On Mouse Leave event is fired even though the mouse is still physically inside myControls but getting over myChildControl, while in this case I wouldn’t need the event to be fired.

I cannot set the HitTest property in the child control as I need to take some actions on mouse events on it too.

Conceptually the Mouse Leave event fires properly, but what’s the cleanest way to manage this case?

Comments are closed.