DragDrop message not received by datagrid row

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

DragDrop message not received by datagrid row

Post by makeshyft » Mon Feb 15, 2016 8:37 pm

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?
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

(Solved) DragDrop message not received by datagrid row

Post by makeshyft » Mon Feb 15, 2016 8:48 pm

the mouseRelease message however is successfully delivered..... so i can substitute it for the drag drop message.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: DragDrop message not received by datagrid row

Post by MaxV » Thu Apr 14, 2016 11:45 am

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#####
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

[solved] DragDrop message not received by datagrid row

Post by makeshyft » Thu Apr 14, 2016 2:43 pm

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.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

Post Reply