This has to do with the platform you are on (GTK, Win32, etc) rather
than wxPython. IIRC, Win32 continues to pass motion events even when
the mouse is outside the window, GTK doesn't.
···
On Tue, 2003-07-15 at 11:40, Thorsten Henninger wrote:
Hi all,
if have a problem capturing the EVT_MOTION, if I drag a file from
outside into my application.
Essentially I would like to select a folder in a wxTreeCtrl, if the user
moves over the folder with the dragged file.
There are no problems capturing the mouse motions if I drag objects
inside my application, just from the outside.
if have a problem capturing the EVT_MOTION, if I drag a file from outside into my application.
Essentially I would like to select a folder in a wxTreeCtrl, if the user moves over the folder with the dragged file.
There are no problems capturing the mouse motions if I drag objects inside my application, just from the outside.
I think the mouse will be captured by the other app, and so all events are going to it so it can manage the DnD operation. However, the drop target should be getting mouse move notifications that you can catch by overriding OnDragOver.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!