Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Window.RemoveMenu

Removes the menu on a window.

Component Version macOS Windows Linux Server iOS SDK
Window 3.3 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "Window.RemoveMenu"; 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 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"; "FileMaker Pro Advanced")
$r = MBS("Window.RemoveMenu"; $h)

Clear menu entries:

$h = MBS("Window.FindByTitle"; "FileMaker Pro Advanced")
$r = MBS("Window.RemoveMenu"; $h; 1)

See also

Blog Entries

This function checks for a license.

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


Window.RemoveFromTaskbar - Window.Resizable