DataGrid DragDrop vs DragMove
lists at mangomultimedia.com
Thu Jan 28 08:21:55 CST 2010
On Jan 27, 2010, at 7:59 PM, RevList wrote:
> On the field script I have this
> On DragDrop
> if line 1 of the dragData["private"] is "MyData" then
> put line 2 of the dragData["private"] into me
> end if
> end DragDrop
> The trouble with the above is that I do not want to allow reordering
> the data and the visual clue that the UI shows when this is enabled
> so I
> comment out the line.
> set the dgTrackDragReorder[theIndex] of me to true
> or set it to false.
> When I do that, the drag and drop no longer works.
You need to specify that the field can accept the drop. Try adding the
following code to the field script after commenting out the
if line 1 of the dragData["private"] is "MyData" then
set the dragAction to "copy"
put line 2 of the dragData["private"] into me
Does that work?
Blue Mango Learning Systems
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
More information about the use-livecode