ui designer compiles for ailenwindows. Tweak to keep behavior of enter/leave events when mouse is captured