DesktopUIControl.DropObject
From Xojo Documentation
Event
DesktopUIControl.DropObject(Obj as DragItem, Action as DragItem.Types)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
The item represented by Obj has been dropped on the control.
Notes
The Obj parameter is the object being dragged. The Action parameter specifies the type of drag action.
Example
The following DropObject event handler can handle either a dropped picture or a dropped file. The type of file that it can handle needs to have been specified in a call to AcceptFileDrop prior to the drop, for example, in the Opening event.
If Obj.PictureAvailable Then
Me.Image = obj.Picture
ElseIf Obj.FolderItemAvailable Then
Me.Image = Picture.Open(obj.FolderItem)
End If
Me.Image = obj.Picture
ElseIf Obj.FolderItemAvailable Then
Me.Image = Picture.Open(obj.FolderItem)
End If
See Also
DragItem, DesktopWindow classes.