Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

DragDrop.GetPicture

Component: DragDrop
Version: 2.4
Mac OS X: Works
Windows: Does nothing

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" )

Feedback: Report problem or ask question.




Links
MBS Realbasic tutorial videos - Pfarrgemeinde Messdiener Nickenich