Window.Maximize
---------------

Maximizes window.

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

MBS( "Window.Maximize"; WindowRef ) 

**MBS**( **"Window.Maximize";** /\* Maximizes 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 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| 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 |

### Result

Returns OK or error.

### Description

Maximizes window.  
On Windows the window maximizes.  
On Mac the window zooms to fit content.  
### Examples

Maximize front window:

 MBS ( "Window.Maximize"; 0)  
Maximize database window:

 MBS ( "Window.Maximize"; Get(WindowName))  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.IsMaximized](WindowIsMaximized.md)
- [Window.IsMinimized](WindowIsMinimized.md)
- [Window.Minimize](WindowMinimize.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.0pr8](https://www.mbsplugins.de/archive/2016-01-26/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 22nd January 2016 , last changed 22nd January 2016

  
[Window.ListCommands](WindowListCommands.md) - [Window.Minimize](WindowMinimize.md)

[HTML Version](WindowMaximize.shtml)