Window.SetToolbarConfiguration
------------------------------

Sets the toolbar configuration.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Toolbar](component_Toolbar.md) [Window](component_Window.md) | [4.3](newinversion43.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "Window.SetToolbarConfiguration"; WindowRef; ConfigurationXML ) 

**MBS**( **"Window.SetToolbarConfiguration";** /\* Sets the toolbar configuration. \*/  
**$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 \*/   
**$ConfigurationXML**) /\* The configuration XML. Should be the one returned by [Window.GetToolbarConfiguration](WindowGetToolbarConfiguration.md). \*/ 

### 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 |
| ConfigurationXML | The configuration XML. Should be the one returned by [Window.GetToolbarConfiguration](WindowGetToolbarConfiguration.md). | $ConfigurationXML |

### Result

Returns OK or error.

### Description

Sets the toolbar configuration.  
Pass a xml with the toolbar's configuration information. If you want to provide a custom xml, you should first get the receiver's current configuration xml, then create a modified copy, rather than trying to construct one yourself.  
Do not depend on any details of the normal contents of a configuration dictionary. This may change with an update to macOS or FileMaker.  
### See also

- [Toolbar.Install](ToolbarInstall.md)
- [Toolbar.Register](ToolbarRegister.md)
- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.GetToolbarConfiguration](WindowGetToolbarConfiguration.md)

### Example Databases

- [Mac only/Toolbar/Window Toolbar](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Toolbar/Window%20Toolbar.shtml#1GroupButton18.0000000216.000000043.0000000355.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS @ FMTraining.TV](https://www.mbsplugins.de/archive/2022-04-15/MBS_@_FMTrainingTV/monkeybreadsoftware_blog_filemaker)
- [Customize your FileMaker solution](https://www.mbsplugins.de/archive/2021-04-25/Customize_your_FileMaker_solut/monkeybreadsoftware_blog_filemaker)
- [Toolbar functions for FileMaker on Mac](https://www.mbsplugins.de/archive/2014-08-27/Toolbar_functions_for_FileMake/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th August 2014 , last changed 10th August 2020

  
[Window.SetTitlebarSeparatorStyle](WindowSetTitlebarSeparatorStyle.md) - [Window.SetToolbarDisplayMode](WindowSetToolbarDisplayMode.md)

[HTML Version](WindowSetToolbarConfiguration.shtml)