Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  


Sets file path list for drag.

Component Version macOS Windows Linux Server FileMaker iOS SDK
DragDrop 11.0 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "DragDrop.SetFilePathsToDrag"; droparea; Paths )   More


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.


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.


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

Release notes

Blog Entries

Created 17th December 2020, last changed 17th December 2020

DragDrop.SetDragImage   -   DragDrop.SetFrame

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat