Receive motion events when mouse is outside window Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
remi
Earned a small fee
Earned a small fee
Posts: 17
Joined: Fri Nov 25, 2005 10:49 pm

Receive motion events when mouse is outside window

Post by remi » Wed Apr 01, 2015 12:53 pm

Hi

I have custom window that handle mouse events. Typically the user drag his mouse and the result is that some sub elements in the window are translated / scaled / rotated. My problem is currently when the mouse leaves the window it does not receive anymore the wxEVT_MOTION events since it loose the focus. I would like that even if the mouse pointer is outside the window area, it continues to receive motion events until one of the mouse button is released. This behavior is similar to the one we can find inside a wxSlider I think.

Could you give me some hits to do this ? I have some ideas but they all need code outside my custom window, and it is not clean.

Cheers


remi
Earned a small fee
Earned a small fee
Posts: 17
Joined: Fri Nov 25, 2005 10:49 pm

Re: Receive motion events when mouse is outside window

Post by remi » Wed Apr 01, 2015 5:25 pm

many thanks.

Post Reply