Overlay.SetAlpha
----------------

Set Alpha can be used to set the transparency of a window.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Overlay](component_Overlay.md) | [14.1](newinversion141.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Overlay.SetAlpha"; OverlayRef; Alpha ) 

**MBS**( **"Overlay.SetAlpha";** /\* Set Alpha can be used to set the transparency of a window. \*/  
**$OverlayRef**; /\* The overlay window reference number.e.g. $overlay \*/   
**$Alpha**) /\* The new alpha value as a float value between 0.0 (invisible) to 1.0 (opaque).e.g. 0.5 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| OverlayRef | The overlay window reference number. | $overlay |
| Alpha | The new alpha value as a float value between 0.0 (invisible) to 1.0 (opaque). | 0.5 |

### Result

Returns OK or error.

### Description

Set Alpha can be used to set the transparency of a window.  
### See also

- [Overlay.Alpha](OverlayAlpha.md)

### Example Databases

- [Drag and Drop/DragTest](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/DragTest.shtml#11ScriptAnchor_)
- [Overlay](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Overlay.shtml#1ScriptAnchor_)

### FileMaker Magazin

- [Ausgabe 4/2025, Seite 31](https://filemaker-magazin.de/neuigkeit/4297-Appetithappen-FMM_202504)
- [Ausgabe 4/2025, Seite 28 bis 29](https://filemaker-magazin.de/neuigkeit/4297-Appetithappen-FMM_202504)

Created 22nd January 2024 , last changed 24th January 2024

  
[Overlay.Resize](OverlayResize.md) - [Overlay.SetFocus](OverlaySetFocus.md)

[HTML Version](OverlaySetAlpha.shtml)