Window.SetFullScreenPrimary
---------------------------

Sets this window to be a primary window.

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

MBS( "Window.SetFullScreenPrimary"; WindowRef; Value ) 

**MBS**( **"Window.SetFullScreenPrimary";** /\* Sets this window to be a primary 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 \*/   
**$Value**) /\* Pass 1 or 0 to indicate new status.e.g. 1 \*/ 

### 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 |
| Value | Pass 1 or 0 to indicate new status. | 1 |

### Result

Returns OK on success.

### Description

Sets this window to be a primary window.  
If true, the window receives the fullscreen widget in the title bar.  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.IsFullScreenAuxiliary](WindowIsFullScreenAuxiliary.md)
- [Window.IsFullScreenPrimary](WindowIsFullScreenPrimary.md)
- [Window.SetFullScreenAuxiliary](WindowSetFullScreenAuxiliary.md)

### Example Databases

- [Window/Fullscreen](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Fullscreen.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Window.SetFullScreenAuxiliary](WindowSetFullScreenAuxiliary.md) - [Window.SetIgnoresMouseEvents](WindowSetIgnoresMouseEvents.md)

[HTML Version](WindowSetFullScreenPrimary.shtml)