Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets file path list for drag.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DragDrop | 11.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
droparea | The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. | $dropHandle |
Paths | List of native file paths. |
Returns OK or error.
Write temp file and allow dragging it:
# find a temp file path
Set Variable [ $path ; Value: MBS( "Path.AddPathComponent"; MBS( "Folders.UserTemporary" ); "export.jpg") ]
# write our container there
Set Variable [ $r ; Value: MBS( "Container.WriteFile"; DragTest::GImage; $path ) ]
# and use it for dragging
Set Variable [ $result ; Value: MBS( "DragDrop.SetFilePathsToDrag"; $$dropview; $path) ]
This function checks for a license.
Created 17th December 2020, last changed 17th December 2020