Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DragDrop.SetFilePathsToDrag
Sets file path list for drag.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DragDrop | 11.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "DragDrop.SetFilePathsToDrag"; droparea; Paths ) More
Parameters
Parameter | Description | Example |
---|---|---|
droparea | The reference ID for this drop area. | $dropHandle |
Paths | List of native file paths. |
Result
Returns OK or error.
Description
Sets file path list for drag.If you use this function, the Drop Area can be used to drag files. Not working with DragDrop.AttachToWindow as we need a control to catch mouse events.
You may want to write some container file to a temp file in a temp folder and pass path to the file here.
Examples
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) ]
See also
- Container.WriteFile
- DragDrop.AttachToWindow
- DragDrop.GetFilePathsToDrag
- Folders.UserTemporary
- Path.AddPathComponent
Release notes
- Version 11.0
- Added DragDrop.GetFilePathsToDrag, DragDrop.SetDragImage and DragDrop.SetFilePathsToDrag functions to allow drag from Drag & Drop control..
Blog Entries
- New in MBS FileMaker Plugin 11.0
- Neues MBS FileMaker Plugin 11.0
- MBS FileMaker Plugin 11.0 - More than 6400 Functions In One Plugin
- MBS FileMaker Plugin, version 10.6pr4
This function checks for a license.
Created 17th December 2020, last changed 17th December 2020
