Window.SetToolbarVisible
------------------------

Sets whether the toolbar is visible or hidden.

| 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.SetToolbarVisible"; WindowRef; State ) 

**MBS**( **"Window.SetToolbarVisible";** /\* Sets whether the toolbar is visible or hidden. \*/  
**$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 \*/   
**$State**) /\* The new state. Pass 0 to hide or 1 to show toolbar.e.g. 1 \*/ 

### 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 |
| State | The new state. Pass 0 to hide or 1 to show toolbar. | 1 |

### Result

Returns OK or error.

### Description

Sets whether the toolbar is visible or hidden.  
### Examples

Show toolbar in current window:

 MBS ( "Window.SetToolbarVisible"; 0; 1 )  
Hide toolbar in current window:

 MBS ( "Window.SetToolbarVisible"; 0; 0 )  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.GetTitleVisible](WindowGetTitleVisible.md)
- [Window.GetToolbarStyle](WindowGetToolbarStyle.md)
- [Window.GetToolbarVisible](WindowGetToolbarVisible.md)
- [Window.ScrollbarsVisible](WindowScrollbarsVisible.md)
- [Window.SetTitleVisible](WindowSetTitleVisible.md)
- [Window.SetToolbarStyle](WindowSetToolbarStyle.md)

### Example Databases

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

### Blog Entries

- [Watching for Errors with MBS Plugin](https://www.mbsplugins.de/archive/2021-03-18/Watching_for_Errors_with_MBS_P/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th August 2014 , last changed 13th May 2021

  
[Window.SetToolbarStyle](WindowSetToolbarStyle.md) - [Window.SetTopMost](WindowSetTopMost.md)

[HTML Version](WindowSetToolbarVisible.shtml)