09-01-2017 05:09 AM
Hi,
im wondering if its possible to set for example if i have edit box, is it possible to select some file from windows folder and drag it upon the edit box and drop it (like html and js plugins for uploads) and catch the path of dragged file?
Im trying with mousedown event, but i can catch just coordinates, and not the item im dragging.
Thanks for info
Lukas
Solved! Go to Solution.
09-05-2017 03:31 AM
Hi Lukas,
yes this is possible with the drop events.
You need to implement EventDropAllowed and EventDrop.
Here is a very short example:
...
Sub EditBox1_EventDropAllowed(ByRef This, DropInformation, ByRef DropEffect) 'Erzeugter Event-Handler
DropEffect=eDropEffectCopy ' Allways allow Drop
End Sub
Sub EditBox1_EventDrop(ByRef This, DropInformation, ByRef DoProceed) 'Erzeugter Event-Handler
call msgbox( DropInformation.FileList.Item(1) ) ' Display the first filename
End Sub
...
I hope this works for you
DIAdemo
09-05-2017 06:19 AM
Thanks for info, as im creating dialogs in Diadem 2015, there is no events like this. im using 2015 because of backward compatibility. But i created dialog for Dialog 2017 and implemented the events, so users with 2017 will have the dropdown feature as im displaying dialog with suffix of the program version.
Thanks