Show/Hide Menubar

Shows or hides the menu bar.

Options 

  • Lock prevents the state of the menu bar from being changed (FileMaker Go only).
  • Show shows the menu bar.
  • Hide hides the menu bar.
  • Toggle switches between showing and hiding the menu bar.

Compatibility 

Product Supported
FileMaker Pro Partial
FileMaker Go Yes
FileMaker WebDirect Partial
FileMaker Server No
FileMaker Cloud products No
FileMaker Data API No
Custom Web Publishing No

Originated in version 

13.0

Notes 

  • This script step is not supported in macOS or when the active window is a card, and returns an error code. The code can be captured with the Get(LastError) function.

Example 1 

If the Guest account is logged in, goes to the Invoices layout and hides the menu bar and status toolbar.

Copy
If [Get ( AccountName ) = "[Guest]"]
    Go to Layout ["Invoices"]
    Show/Hide Menubar [Lock: Off ; Hide]
    Show/Hide Toolbars [Hide]
End If