Window.AddToTaskbar
-------------------

Adds a window to the taskbar.

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

MBS( "Window.AddToTaskbar"; WindowRef ) 

**MBS**( **"Window.AddToTaskbar";** /\* Adds a window to the taskbar. \*/  
**$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 \*/ 

### 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 |

### Result

Returns OK or error.

### Description

Adds a window to the taskbar.  
FileMaker windows are added by default and toolbars not.  
If the window is already added, this function will do nothing.  
### See also

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

### Release notes

- **Version 13.5**
    - Added [Window.AddToTaskbar](https://www.mbsplugins.eu/WindowAddToTaskbar.shtml) and [Window.RemoveFromTaskbar](https://www.mbsplugins.eu/WindowRemoveFromTaskbar.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.5](https://www.mbsplugins.de/archive/2023-11-28/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-11-07/Neues_MBS_Plugin_135_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-11-07/MBS_Plugin_135_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.5pr7](https://www.mbsplugins.de/archive/2023-11-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 27th October 2023 , last changed 27th October 2023

  
[Window.AddBottomOverlay](WindowAddBottomOverlay.md) - [Window.AsPDF](WindowAsPDF.md)

[HTML Version](WindowAddToTaskbar.shtml)