Window.ResizeContentView
------------------------

Resizes content view of window.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [6.0](newinversion60.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Window.ResizeContentView"; WindowRef { ; X; Y; W; H } ) 

**MBS**( **"Window.ResizeContentView";** /\* Resizes content view of window. \*/  
**$WindowRef**; /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/   
**$X**; /\* Optional; Delta for x position of content view.  
Use positive value to move to right or negative to move to left.e.g. 0 \*/   
**$Y**; /\* Optional; Delta for y position of content view.  
Use positive value to move to top or negative to move to bottom.e.g. -5 \*/   
**$W**; /\* Optional; Delta for width of content view.  
Use positive value to make wider or negative value to make narrower.e.g. 0 \*/   
**$H**) /\* Optional; Delta for height of content view.  
Use positive value to make heigher or negative value to make smaller.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window. | 0 |  |
| X | Delta for x position of content view.   Use positive value to move to right or negative to move to left. | 0 | Optional |
| Y | Delta for y position of content view.   Use positive value to move to top or negative to move to bottom. | -5 | Optional |
| W | Delta for width of content view.   Use positive value to make wider or negative value to make narrower. | 0 | Optional |
| H | Delta for height of content view.   Use positive value to make heigher or negative value to make smaller. | 0 | Optional |

### Result

Returns OK or error.

### Description

Resizes content view of window.  
This allows you to move the content view within any window.  
e.g. on a FileMaker window to stretch content to move scrollbars out of sight.  
### Examples

Resizes to hide scrollbar partial:

 MBS ("Window.ResizeContentView"; 0; 0; -5; 0; 5)  
Reset content view:

 MBS ("Window.ResizeContentView"; $window ; 0; 0; 0; 0)  
Resizes to hide scrollbar:

 MBS ("Window.ResizeContentView"; 0; 0; -16; 0; 16)  
Hide bottom area with controls:

 MBS ("Window.ResizeContentView"; 0; 0; -16; 0; 16)  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.Resize](WindowResize.md)
- [Window.SetTitlebarAppearsTransparent](WindowSetTitlebarAppearsTransparent.md)

### Release notes

- **Version 11.2**
    - Deprecated [Window.ResizeContentView](https://www.mbsplugins.eu/WindowResizeContentView.shtml), [Window.GetTitlebarAppearsTransparent](https://www.mbsplugins.eu/WindowGetTitlebarAppearsTransparent.shtml) and [Window.SetTitlebarAppearsTransparent](https://www.mbsplugins.eu/WindowSetTitlebarAppearsTransparent.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 11.2pr2](https://www.mbsplugins.de/archive/2021-04-07/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.5pr3](https://www.mbsplugins.de/archive/2015-12-19/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 13th December 2015 , last changed 7th April 2021

  
[Window.Resize](WindowResize.md) - [Window.RunCommand](WindowRunCommand.md)

[HTML Version](WindowResizeContentView.shtml)