AVPlayer.SetFrameWithControl
----------------------------

Repositions text view to given control.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVPlayer](component_AVPlayer.md) | [10.2](newinversion102.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "AVPlayer.SetFrameWithControl"; AVPlayer; ControlName { ; DX; DY } ) 

**MBS**( **"AVPlayer.SetFrameWithControl";** /\* Repositions text view to given control. \*/  
**$AVPlayer**; /\* The reference number of the player.e.g. $Player \*/   
**$ControlName**; /\* The name of the control on your FileMaker form.   
e.g. you can place a rectangle there to define the position.e.g. "mymedia" \*/   
**$DX**; /\* Optional; A delta to move text view more to left or right.e.g. 0 \*/   
**$DY**) /\* Optional; A delta to move text view more to top or bottom.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| AVPlayer | The reference number of the player. | $Player |  |
| ControlName | The name of the control on your FileMaker form.    e.g. you can place a rectangle there to define the position. | "mymedia" |  |
| DX | A delta to move text view more to left or right. | 0 | Optional |
| DY | A delta to move text view more to top or bottom. | 0 | Optional |

### Result

Returns OK or error.

### Description

Repositions text view to given control.  
If you moved control in layout mode, this can move the text view back to the new position.  
Also useful to switch between different locations on the layout.  
### See also

- [DragDrop.SetFrameWithControl](DragDropSetFrameWithControl.md)
- [ImageView.SetFrameWithControl](ImageViewSetFrameWithControl.md)
- [MapView.SetFrameWithControl](MapViewSetFrameWithControl.md)
- [Overlay.SetFrameWithControl](OverlaySetFrameWithControl.md)
- [Preview.SetFrameWithControl](PreviewSetFrameWithControl.md)
- [TextView.SetFrameWithControl](TextViewSetFrameWithControl.md)
- [WebView.SetFrameWithControl](WebViewSetFrameWithControl.md)

### Release notes

- **Version 10.3**
    - 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).

### Blog Entries

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

This function checks for a license.

Created 12nd March 2020 , last changed 9th June 2020

  
[AVPlayer.SetFocus](AVPlayerSetFocus.md) - [AVPlayer.SetMuted](AVPlayerSetMuted.md)

[HTML Version](AVPlayerSetFrameWithControl.shtml)