Overlay.SetTopMost
------------------

Sets window to be topmost.

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

MBS( "Overlay.SetTopMost"; OverlayRef; Value ) 

**MBS**( **"Overlay.SetTopMost";** /\* Sets window to be topmost. \*/  
**$OverlayRef**; /\* The overlay window reference number.e.g. $overlay \*/   
**$Value**) /\* The new topmost setting. Can be 0 or 1.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| OverlayRef | The overlay window reference number. | $overlay |
| Value | The new topmost setting. Can be 0 or 1. | 1 |

### Result

Returns OK or error.

### Description

Sets window to be topmost.  
If window is topmost, it floats over all other windows.  
### See also

- [Overlay.GetTopMost](OverlayGetTopMost.md)

### Example Databases

- [Overlay](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Overlay.shtml#6ScriptAnchor_)

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

  
[Overlay.SetTitle](OverlaySetTitle.md) - [Overlay.SetVisible](OverlaySetVisible.md)

[HTML Version](OverlaySetTopMost.shtml)