Window.SetTitlebarAppearsTransparent
------------------------------------

Sets titlebar transparency.

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

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Window.SetTitlebarAppearsTransparent"; WindowRef; Value ) 

**MBS**( **"Window.SetTitlebarAppearsTransparent";** /\* Sets titlebar transparency. \*/  
**$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 \*/   
**$Value**) /\* The new visible setting.  
Pass 1 to make transparent.  
Pass 0 to make opaque.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 |
| Value | The new visible setting.   Pass 1 to make transparent.   Pass 0 to make opaque. | 1 |

### Result

Returns OK or error.

### Description

Sets titlebar transparency.  
When 1, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when being full screen.  
### Examples

Set titlebar invisible and resize content to fill space:

 Set Variable \[$r ; Value:MBS ("Window.SetTitlebarAppearsTransparent"; 0; 1)\]  
Set Variable \[$r ; Value:MBS ("[Window.ResizeContentView](WindowResizeContentView.md)"; 0; 0; 0; 0; 22)\]  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.GetTitlebarAppearsTransparent](WindowGetTitlebarAppearsTransparent.md)
- [Window.Resize](WindowResize.md)
- [Window.ResizeContentView](WindowResizeContentView.md)
- [Window.SetTitle](WindowSetTitle.md)

### Release notes

- **Version 11.2**
    - Deprecated [Window.ResizeContentView](https://www.mbsplugins.eu/WindowResizeContentView.shtml), [Window.GetTitlebarAppearsTransparent](https://www.mbsplugins.eu/WindowGetTitlebarAppearsTransparent.shtml) and [Window.SetTitlebarAppearsTransparent](https://www.mbsplugins.eu/WindowSetTitlebarAppearsTransparent.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 11.2pr2](https://www.mbsplugins.de/archive/2021-04-07/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.0pr7](https://www.mbsplugins.de/archive/2016-01-20/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 16th January 2016 , last changed 7th April 2021

  
[Window.SetTitleVisible](WindowSetTitleVisible.md) - [Window.SetTitlebarSeparatorStyle](WindowSetTitlebarSeparatorStyle.md)

[HTML Version](WindowSetTitlebarAppearsTransparent.shtml)