Window.GetToolbarStyle
----------------------

Queries toolbar style.

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

MBS( "Window.GetToolbarStyle"; WindowRef ) 

**MBS**( **"Window.GetToolbarStyle";** /\* Queries toolbar style. \*/  
**$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 value or error.

### Description

Queries toolbar style.  
The style that determines the appearance and location of the toolbar in relation to the title bar.  
Value can be Automatic, Expanded, Preference, Unified or UnifiedCompact.  
  
Requires macOS 11.0 or newer.  
### Examples

Query style:

 Set Variable \[ $style ; Value: MBS ( "Window.GetToolbarStyle"; 0 /\* current \*/ ) \]  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.GetToolbarVisible](WindowGetToolbarVisible.md)
- [Window.SetToolbarStyle](WindowSetToolbarStyle.md)
- [Window.SetToolbarVisible](WindowSetToolbarVisible.md)

### Release notes

- **Version 11.0**
    - Added [Window.GetToolbarStyle](https://www.mbsplugins.eu/WindowGetToolbarStyle.shtml) and [Window.SetToolbarStyle](https://www.mbsplugins.eu/WindowSetToolbarStyle.shtml) for macOS 11.0

### Blog Entries

- [MBS FileMaker Plugin, version 10.6pr1](https://www.mbsplugins.de/archive/2020-12-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 29th November 2020 , last changed 11st January 2021

  
[Window.GetToolbarDisplayMode](WindowGetToolbarDisplayMode.md) - [Window.GetToolbarVisible](WindowGetToolbarVisible.md)

[HTML Version](WindowGetToolbarStyle.shtml)