TextView.SetFrame
-----------------

Sets a new frame for the text view.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TextView](component_TextView.md) | [9.2](newinversion92.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "TextView.SetFrame"; TextView; X; Y; Width; Height ) 

**MBS**( **"TextView.SetFrame";** /\* Sets a new frame for the text view. \*/  
**$TextView**; /\* The reference number to the text view. \*/   
**$X**; /\* The x coordinate. \*/   
**$Y**; /\* The y coordinate. \*/   
**$Width**; /\* The width of the control. \*/   
**$Height**) /\* The height of the control. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| TextView | The reference number to the text view. | $textview |
| 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 text view.  
As Cocoa framework uses zero for the bottom coordinate, we have to swap for the normal topdown coordinates to be used.  
### See also

- [ImageView.SetFrame](ImageViewSetFrame.md)
- [MapView.SetFrame](MapViewSetFrame.md)
- [TextView.SetFocus](TextViewSetFocus.md)
- [TextView.SetStyled](TextViewSetStyled.md)
- [TextView.SetTag](TextViewSetTag.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 10.0**
    - Changed [DragDrop.CreateWithControl](https://www.mbsplugins.eu/DragDropCreateWithControl.shtml), [DragDrop.CreateOnPopoverWithControl](https://www.mbsplugins.eu/DragDropCreateOnPopoverWithControl.shtml), [TextView.CreateWithControl](https://www.mbsplugins.eu/TextViewCreateWithControl.shtml), [TextView.SetFrameWithControl](https://www.mbsplugins.eu/TextViewSetFrameWithControl.shtml) and [TextView.CreateOnPopoverWithControl](https://www.mbsplugins.eu/TextViewCreateOnPopoverWithControl.shtml) to return error when control is not found.

### 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 15th April 2019 , last changed 15th April 2019

  
[TextView.SetFocus](TextViewSetFocus.md) - [TextView.SetFrameWithControl](TextViewSetFrameWithControl.md)

[HTML Version](TextViewSetFrame.shtml)