View Issue Details

IDProjectCategoryView StatusLast Update
0008059MMW v4Framework: Scripts/Extensionspublic2011-06-30 12:54
Reporterzvezdan Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version4.0 
Summary0008059: Return value of OnNodeDragDrop/OnDragDrop event has no effect
DescriptionThe description on the wiki for OnNodeDragDrop for return values = 3 and 4 is very confusing:
3 .. Move operation that cannot be modified using Shift key
4 .. Copy operation that cannot be modified using Shift key

I really didn't know what you want to say with that until I saw the description for OnDragDrop for the same values that is more logical:
3 - Just Move - Tracks can only be moved here (no copied). User cannot change the shape of cursor to copy.
4 - Just Copy - Tracks can only be copied here (no moved). User cannot change the shape of cursor to move.

By the way, changing the shape of the mouse cursor for Copy operation is not Shift key, but Ctrl.

Well, I don't want to comment the wiki, but the behavior of these event handlers. According to your description if I use something like this:

Function LyricistDragDrop( destNode, srcNode, SongList, DropType, Test)
  If Test Then
    LyricistDragDrop = 3
  Else
    ' ...
  End If
End Function

then the mouse cursor cannot change to [+] when I press Ctrl, but it is changed anyway and the next call of that event handler has DropType = 1 which is Copy. So, what is a point of assigning "Just Move" return value if it is not effective?
TagsNo tags attached.
Fixed in build

Relationships

related to 0008060 assignedpetr Drag & drop to some node with Ctrl pressed change mouse cursor even with nodes that cannot append text 

Activities

jiri

2011-06-30 12:54

administrator   ~0026471

Ludek, please review whether the returned values are correct or need some modifications.