Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

DragDrop.GetPicture

Queries picture from drag and drop action.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DragDrop 2.4 Yes No No No No

MBS( "DragDrop.GetPicture"; droparea { ; ImageType; Filename; index } )

Parameters

Parameter Description Example value
droparea The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. $dropHandle
ImageType Optional
The type of image to return. Either JPEG, PNG, GIF or BMP. Default is JPEG.
"JPEG"
Filename Optional
The filename to use for the picture. Default is "image" with the extension matching the image type.
"test.jpg"
index Optional
Index for the file path. Index goes from 0 to DragDrop.GetPathCount-1.
0

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.

Examples

Queries picture as PNG

MBS( "DragDrop.GetPicture"; $droparea; "PNG"; "myfile.png" )

See also

Example Databases

Created 18th August 2014, last changed 12nd July 2015


DragDrop.GetPathCount   -   DragDrop.GetTag

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos