Control.Drag (gb.qt4)
Function Drag ( Data As Variant [ , Format As String ] ) As Control
Starts a drag & drop process.
-
Data is the data to be dragged. It can be a String or an Image.
-
If Data is a text, then you can specify in Format the MIME type of this text. For example,
"text/html"
.
Support for URIs
Поскольку 3.18
If
Format is
"text/uri-list"
, then
Data must be an array of file paths that will be sent to the clipboard as an URI list.
Dim aPaths As New String[]
aPaths.Add(User.Home &/ "File1.txt")
aPaths.Add(User.Home &/ "File2.txt")
aPaths.Add(User.Home &/ "File3.txt")
MyControl.Drag(aPaths, "text/uri-list")
See also