EVT_MOTION with DragAndDrop problem

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.

thanks for any help,

Thorsten Henninger

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.

--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 (800) 735-0555

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.

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!