DragDrop.SetFrame
-----------------

Sets a new frame for the drop area.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DragDrop](component_DragDrop.md) | [4.0](newinversion40.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "DragDrop.SetFrame"; droparea; X; Y; Width; Height ) 

**MBS**( **"DragDrop.SetFrame";** /\* Sets a new frame for the drop area. \*/  
**$droparea**; /\* The reference ID for this drop area.e.g. $dropHandle \*/   
**$X**; /\* The x coordinate. \*/   
**$Y**; /\* The y coordinate. \*/   
**$Width**; /\* The width of the control. \*/   
**$Height**) /\* The height of the control. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| droparea | The reference ID for this drop area. | $dropHandle |
| X | The x coordinate. |  |
| Y | The y coordinate. |  |
| Width | The width of the control. |  |
| Height | The height of the control. |  |

### Result

Returns OK or error.

### Description

Sets a new frame for the drop area.  
As Cocoa framework uses zero for the bottom coordinate, we have to swap for the normal topdown coordinates to be used.  
### See also

- [DragDrop.SetCursor](DragDropSetCursor.md)
- [DragDrop.SetDragImage](DragDropSetDragImage.md)
- [DragDrop.SetFrameWithControl](DragDropSetFrameWithControl.md)
- [DragDrop.SetImage](DragDropSetImage.md)
- [DragDrop.SetTag](DragDropSetTag.md)

### Release notes

- **Version 10.3**
    - Rewrote also [DragDrop.SetFrame](https://www.mbsplugins.eu/DragDropSetFrame.shtml), [ImageView.SetFrame](https://www.mbsplugins.eu/ImageViewSetFrame.shtml), [MapView.SetFrame](https://www.mbsplugins.eu/MapViewSetFrame.shtml) and [TextView.SetFrame](https://www.mbsplugins.eu/TextViewSetFrame.shtml).
    - Rewrote control placement for MacOS and iOS controls for [AVPlayer.SetFrameWithControl](https://www.mbsplugins.eu/AVPlayerSetFrameWithControl.shtml), [DragDrop.SetFrameWithControl](https://www.mbsplugins.eu/DragDropSetFrameWithControl.shtml), [ImageView.SetFrameWithControl](https://www.mbsplugins.eu/ImageViewSetFrameWithControl.shtml), [MapView.SetFrameWithControl](https://www.mbsplugins.eu/MapViewSetFrameWithControl.shtml) [TextView.SetFrameWithControl](https://www.mbsplugins.eu/TextViewSetFrameWithControl.shtml), [WebView.SetFrameWithControl](https://www.mbsplugins.eu/WebViewSetFrameWithControl.shtml).
- **Version 8.5**
    - Added [DragDrop.SetFrameWithControl](http://www.mbsplugins.eu/DragDropSetFrameWithControl.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 10.3pr3](https://www.mbsplugins.de/archive/2020-06-12/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2020, Seite 37](https://filemaker-magazin.de/neuigkeit/4089-Appetithappen-FMM_202002)

This function checks for a license.

Created 18th August 2014 , last changed 5th February 2018

  
[DragDrop.SetFilePathsToDrag](DragDropSetFilePathsToDrag.md) - [DragDrop.SetFrameWithControl](DragDropSetFrameWithControl.md)

[HTML Version](DragDropSetFrame.shtml)