Window.SetShadow
----------------

Turns shadow on or off.

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

MBS( "Window.SetShadow"; WindowRef; On or Off ) 

**MBS**( **"Window.SetShadow";** /\* Turns shadow on or off. \*/  
**$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 \*/   
**$On or Off**) /\* 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 |
| On or Off |  | 1 |

### Description

Turns shadow on or off.  
On macOS window's normally have a shadow, this function lets you turn the shadow on and off  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.HasShadow](WindowHasShadow.md)

This function checks for a license.

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

  
[Window.SetRoundCorners](WindowSetRoundCorners.md) - [Window.SetShowsToolbarButton](WindowSetShowsToolbarButton.md)

[HTML Version](WindowSetShadow.shtml)