Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Window.SetToolbarStyle
Sets toolbar style.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Window | 10.6 | Yes | No | No | No | No |
MBS( "Window.SetToolbarStyle"; WindowRef; Mode ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. | 0 |
| Mode | The new style. Value can be Automatic, Expanded, Preference, Unified or UnifiedCompact. |
"Automatic" |
Result
Returns OK or error.
Description
Sets toolbar style.The style that determines the appearance and location of the toolbar in relation to the title bar.
Requires macOS 11.0 or newer.
| Automatic | A style indicating that the system determines the toolbar’s appearance and location. |
| Expanded | A style indicating that the toolbar appears below the window title. |
| Preference | A style indicating that the toolbar appears below the window title with toolbar items centered in the toolbar. |
| Unified | A style indicating that the toolbar appears next to the window title. |
| UnifiedCompact | A style indicating that the toolbar appears next to the window title and with reduced margins to allow more focus on the window’s contents. |
See also
- Window.FindByIndex
- Window.FindByTitle
- Window.GetToolbarStyle
- Window.GetToolbarVisible
- Window.SetToolbarVisible
Release notes
- Version 10.6
- Added Window.GetToolbarStyle and Window.SetToolbarStyle for macOS 11.0
Created 29th November 2020, last changed 29th November 2020
Window.SetToolbarDisplayMode - Window.SetToolbarVisible
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos