Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Win32 GUI onDrag?

by AndreaN (Novice)
on Jul 20, 2014 at 15:26 UTC ( [id://1094385]=perlquestion: print w/replies, xml ) Need Help??

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. ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1094385]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found