Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DragDrop.SetImage
Sets the image to be shown in the drop area.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DragDrop | 2.4 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "DragDrop.SetImage"; droparea; image ) More
Parameters
Parameter | Description | Example |
---|---|---|
droparea | The reference ID for this drop area. | $dropHandle |
image | the image to use. For best results, pass a container value with a PNG image. |
Result
Returns "OK" on success.
Description
Sets the image to be shown in the drop area.Currently not working right in FileMaker 13. Better just put image in layout where you plan to put the drag area.
Added Windows support for MBS Plugin 8.1. Please use picture without alpha channel.
Image is scaled to viewing area, so best make sure you have exactly two times the pixels in the image relative to size of the control.
Examples
Put a picture on drop area:
Set Variable [$result; Value:MBS( "DragDrop.SetImage"; $dropview; DragTest::img )]
See also
- DragDrop.CreateWithControl
- DragDrop.CreateWithWindow
- DragDrop.GetTag
- DragDrop.SetDragImage
- DragDrop.SetFrame
- DragDrop.SetTag
Example Databases
Blog Entries
- Adding Drag and Drop receiver to a layout
- MBS FileMaker Plugin, version 5.0pr10
- MBS Filemaker Plugin, version 2.4pr7
FileMaker Magazin
This function is free to use.
Created 18th August 2014, last changed 17th December 2020