Re: Drag and Drop Win32Lib Example Needed

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...
DanM said...

Well, this is "quick and dirty" example, sortof, but it does allow a file dragged from desktop to be presented in a mle in a Euphoria program, not sure if that's exactly what you wanted or not.

I "lifted" most of it from a Win32Lib demo, "ShowText.exw".

Thanks Dan. That helped. I knew what to do with the w32HDragAndDrop message, but I wasn't able to get it to

setText( txt_FileName, params[2] )

until I put in the test you used, if length( params[2] ) > 3 then...

So, THANKS AGAIN! :)

You're welcome!

And if you uncomment the print before that test, you'll see why the event doesn't work right without the test: there are apparently THREE triggerings of the event from ONE drag'n drop, the last one returns nothing for params[2], the first one returns a single character, and the second returns the file name in params[2]. Seems to me there's something WRONG with the event being triggered 3 times for one action??

Dan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu