Window.RemoveMenu
-----------------

Removes the menu on a window.

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

MBS( "Window.RemoveMenu"; WindowRef; Mode ) 

**MBS**( **"Window.RemoveMenu";** /\* Removes the menu on a window. \*/  
**$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 \*/   
**$Mode**) /\* Can be 1 to remove menu entries instead of whole menu.  
That may be more permanent and allows you to get back invisible menu when you switch to layout mode and back.  
Default value 0 unassigns menu from Window.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 |
| Mode | Can be 1 to remove menu entries instead of whole menu.   That may be more permanent and allows you to get back invisible menu when you switch to layout mode and back.   Default value 0 unassigns menu from Window. | 1 |

### Result

Returns OK on success.

### Description

Removes the menu on a window.  
You can use this function to remove the FileMaker menu bar.  
### Examples

Remove menu:

 $h = MBS ("[Window.FindByTitle](WindowFindByTitle.md)"; "FileMaker Pro Advanced")  
$r = MBS ("Window.RemoveMenu"; $h )  
Clear menu entries:

 $h = MBS ("[Window.FindByTitle](WindowFindByTitle.md)"; "FileMaker Pro Advanced")  
$r = MBS ("Window.RemoveMenu"; $h ; 1)  
### See also

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

### Blog Entries

- [MBS FileMaker Plugin, version 6.2pr10](https://www.mbsplugins.de/archive/2016-05-20/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.3pr3](https://www.mbsplugins.de/archive/2013-06-02/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 14th May 2016

  
[Window.RemoveFromTaskbar](WindowRemoveFromTaskbar.md) - [Window.Resizable](WindowResizable.md)

[HTML Version](WindowRemoveMenu.shtml)