Overlay.GetTopMost
------------------

Queries whether window is topmost.

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

MBS( "Overlay.GetTopMost"; OverlayRef ) 

**MBS**( **"Overlay.GetTopMost";** /\* Queries whether window is topmost. \*/  
**$OverlayRef**) /\* The overlay window reference number.e.g. $overlay \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| OverlayRef | The overlay window reference number. | $overlay |

### Result

Returns 1 or 0 or error.

### Description

Queries whether window is topmost.  
If window is topmost, it floats over all other windows.  
### See also

- [Overlay.GetTop](OverlayGetTop.md)
- [Overlay.SetTopMost](OverlaySetTopMost.md)

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

  
[Overlay.GetTop](OverlayGetTop.md) - [Overlay.GetWidth](OverlayGetWidth.md)

[HTML Version](OverlayGetTopMost.shtml)