AndreaN has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I'm currently creating an application in which I use the onDropFiles event of Win32::GUI.

I wanted the icon of the button to change when the user is dragging the file on it. I looked in the documentation but I didn't find any event like a "onDraggedFile" or anything similar. Has anybody found this problem? Did I miss something or is it just impossible to change icon in this way using Win32::Gui?

Thanks!

Replies are listed 'Best First'.
Re: Win32 GUI onDrag?
by Anonymous Monk on Jul 20, 2014 at 19:19 UTC

    You should be looking at mouse events, say -onMouseMove

    I tried it, but I couldn't get any onMouseMove events to fire when dropping files ... something about the windows not having focus until file is dropped

    The mouse cursor changes, that usually enough :)

    There is only WM_DROPFILES message (Windows) there are no other events

Re: Win32 GUI onDrag?
by Anonymous Monk on Jul 21, 2014 at 13:41 UTC
    "A Win32 GUI on drag ..." an interesting visual, that. ;-)