DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog - some control with dropdown event

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(2,481 Views)
Solution
Accepted by topic author Lukas_Doubek

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

 

Message 2 of 3
(2,446 Views)

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

0 Kudos
Message 3 of 3
(2,439 Views)