Page 1 of 1

DragDrop message not received by datagrid row

Posted: Mon Feb 15, 2016 8:37 pm
by makeshyft
Hi everyone,

I'm trying to build some simple drag and drop functionality from one row of the datagrid to another...

the dragstart message is sent correctly, but none of the drag messages are received by the row onto which I drag.

my DG is in table mode...

Can anything be done?...any ideas?

(Solved) DragDrop message not received by datagrid row

Posted: Mon Feb 15, 2016 8:48 pm
by makeshyft
the mouseRelease message however is successfully delivered..... so i can substitute it for the drag drop message.

Re: DragDrop message not received by datagrid row

Posted: Thu Apr 14, 2016 11:45 am
by MaxV
This works for me, putting the code on the datagrid group:
########CODE#######
on DragEnter
set the dragAction to "copy"
end DragEnter

on DragDrop
put the dragdata ["files"] into temp
set itemdel to "/"
put last item of temp into tempnome
ask "How do you call this file?" with tempNome
#...
end DragDrop
#####END OF CODE#####

[solved] DragDrop message not received by datagrid row

Posted: Thu Apr 14, 2016 2:43 pm
by makeshyft
thank you i ended up figuring that out as well. did quite a bit of modifications to the drag drop functions in the original code to change how the drag indicator looked and worked....but it was all quite easy,

thank you.