Window.GetToolbarDisplayMode
----------------------------

Queries mode of Mac toolbar.

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

MBS( "Window.GetToolbarDisplayMode"; WindowRef ) 

**MBS**( **"Window.GetToolbarDisplayMode";** /\* Queries mode of Mac toolbar. \*/  
**$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 mode or error.

### Description

Queries mode of Mac toolbar.  
Value can be Default, IconAndLabel, IconOnly or LabelOnly.  
Default in FileMaker is IconAndLabel.  
### Examples

Query toolbar display mode:

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

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

### Release notes

- **Version 11.0**
    - Added [Window.GetToolbarDisplayMode](https://www.mbsplugins.eu/WindowGetToolbarDisplayMode.shtml) and [Window.SetToolbarDisplayMode](https://www.mbsplugins.eu/WindowSetToolbarDisplayMode.shtml) functions to configure macOS toolbar to show icons and/or labels.

### Blog Entries

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

This function checks for a license.

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

  
[Window.GetToolbarCustomizationPaletteIsRunning](WindowGetToolbarCustomizationPaletteIsRunning.md) - [Window.GetToolbarStyle](WindowGetToolbarStyle.md)

[HTML Version](WindowGetToolbarDisplayMode.shtml)