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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Defines what file types should be accepted for drag and drop for this window.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DragDrop | 2.4 | ✅ Yes | ❌ No | ❌ 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 |
Types | The types you want to accept for the window. This can be Cocoa native type specifications or some special types: "images" for all image types, "movies" for movie types, "file" for files, "URL" for URLs, "Email" for emails and "text" for text. If you use more than one type, separate them with comma. |
"images" |
Returns "OK" on success.
Registers for file drop for the current window:
MBS( "DragDrop.RegisterDropTypes"; $droparea; "file")
Create with control:
Set Variable [ $dropview ; Value: MBS("DragDrop.CreateWithControl"; 0; "DropArea") ]
Set Variable [ $result ; Value: MBS( "DragDrop.RegisterDropTypes"; $dropview; "file") ]
Set Variable [ $result ; Value: MBS( "DragDrop.SetDragActionHandler"; $dropview; Get ( FileName ); "DragAction") ]
Set Variable [ $result ; Value: MBS( "DragDrop.SetCursor"; $dropview; 1) ]
Created 18th August 2014, last changed 13th March 2019
DragDrop.List - DragDrop.Release
Feedback: Report problem or ask question.