Overlay.Move
------------

Moves the window the given position.

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

MBS( "Overlay.Move"; OverlayRef; X; Y { ; AnimationTime } ) 

**MBS**( **"Overlay.Move";** /\* Moves the window the given position. \*/  
**$OverlayRef**; /\* The overlay window reference number.e.g. $overlay \*/   
**$X**; /\* The x coordinate in points.e.g. 200 \*/   
**$Y**; /\* The y coordiate in points.e.g. 200 \*/   
**$AnimationTime**) /\* Optional; Whether to animate it and how long to animate in seconds.  
Pass zero for no animmation.e.g. 2 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| OverlayRef | The overlay window reference number. | $overlay |  |
| X | The x coordinate in points. | 200 |  |
| Y | The y coordiate in points. | 200 |  |
| AnimationTime | Whether to animate it and how long to animate in seconds.   Pass zero for no animmation. | 2 | Optional      Added in version **14.2**. |

### Result

Returns OK or error.

### Description

Moves the window the given position.  
Like [Overlay.SetFrame](OverlaySetFrame.md) without changing the size.  
Top left edge of main screen is 0/0.  
### See also

- [Overlay.MouseX](OverlayMouseX.md)
- [Overlay.MouseY](OverlayMouseY.md)
- [Overlay.SetFrame](OverlaySetFrame.md)

### Release notes

- **Version 14.2**
    - Added AnimationTime parameter for [Overlay.Move](https://www.mbsplugins.eu/OverlayMove.shtml) function.

### Blog Entries

- [Neues MBS Plugin 14.2 für Claris FileMaker](https://www.mbsplugins.de/archive/2024-05-14/Neues_MBS_Plugin_142_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 14.2 for Claris FileMaker](https://www.mbsplugins.de/archive/2024-05-14/MBS_Plugin_142_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.2pr1](https://www.mbsplugins.de/archive/2024-04-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

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

Created 22nd January 2024 , last changed 16th March 2024

  
[Overlay.MouseY](OverlayMouseY.md) - [Overlay.Release](OverlayRelease.md)

[HTML Version](OverlayMove.shtml)