ISDBTreeNodeEvents::OnNodeDragDrop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{MethodDeclaration|SDBTreeNode|ISDBTreeNodeEvents|Function OnNodeDragDrop(DestinationNode As SDBTreeNode, SourceNode As SDBTreeNode, TrackList As SDBSongList, CopyType As Long, JustTest As Boolean) As Long}} | {{MethodDeclaration|SDBTreeNode|ISDBTreeNodeEvents|Function OnNodeDragDrop(DestinationNode As [[SDBTreeNode]], SourceNode As [[SDBTreeNode]], TrackList As [[SDBSongList]], CopyType As Long, JustTest As Boolean) As Long}} | ||
===Parameters=== | ===Parameters=== |
Latest revision as of 02:31, 26 December 2007
CoClass SDBTreeNode, Interface ISDBTreeNodeEvents
Function OnNodeDragDrop(DestinationNode As SDBTreeNode, SourceNode As SDBTreeNode, TrackList As SDBSongList, CopyType As Long, JustTest As Boolean) As Long
Parameters
Name | Type | Description |
---|---|---|
DestinationNode | SDBTreeNode | Node where user is about to drop tracks |
SourceNode | SDBTreeNode | Node where the drag&drop operation started |
TrackList | SDBSongList | List of tracks that are being dragged |
CopyType | Long | The same list of values as the return value of this function |
JustTest | Boolean | If true, this is just a test and return value of this event specifies whether tracks can be dropped here or not. |
Event description
This event is called when:
- User drags tracks over the given node
- User drops tracks on the given node
This event is supposed to either let MM know whether drag&drop can proceed here, or should directly process the operation (depending on justTest parameter)
Return values can be:
- 0 .. Drag&Drop operation isn't allowed here
- 1 .. Copy operation
- 2 .. Move operation
- 3 .. Move operation that cannot be modified using Shift key
- 4 .. Copy operation that cannot be modified using Shift key