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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DragDrop.GetPicture
Queries picture from drag and drop action.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DragDrop | 2.4 | Yes | No | No | No | No |
MBS( "DragDrop.GetPicture"; droparea { ; ImageType; FileName; index } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| droparea | The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. | $dropHandle | |
| ImageType | The type of image to return. Either JPEG, PNG, GIF or BMP. Default is JPEG. |
"JPEG" | Optional |
| FileName | The filename to use for the picture. Default is "image" with the extension matching the image type. |
"test.jpg" | Optional |
| index | Index for the file path. Index goes from 0 to DragDrop.GetPathCount-1. | 0 | Optional |
Result
Returns container value with picture.
Description
Queries picture from drag and drop action.Call this function in the drag action script. This can be a direct picture drag or a file drag where we load the picture file.
Added Windows support for version 10.3 to get JPEG, PNG and GIF. The type depends on content, so image type and index parameters are ignored there.
Examples
Queries picture as PNG
MBS( "DragDrop.GetPicture"; $droparea; "PNG"; "myfile.png" )
See also
- DragDrop.CreateWithControl
- DragDrop.GetPath
- DragDrop.GetPathCount
- DragDrop.GetVisible
- DragDrop.GetWidth
Example Databases
Blog Entries
FileMaker Magazin
Release notes
- Version 10.3
- Added DragDrop.GetPicture for Windows to get PNG, JPEG and GIF from drop.
Created 18th August 2014, last changed 29th September 2020
DragDrop.GetPathCount - DragDrop.GetRTF
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos