Reference > Script steps reference > Windows script steps > Show/Hide Menubar
 
Show/Hide Menubar
Purpose 
Shows or hides the menu bar.
See also 
Format 
Show/Hide Menubar [Lock: On/Off ; Show/Hide/Toggle]
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 
 
Where the script step runs 
Supported 
FileMaker Pro 
Partial 
FileMaker Server 
No 
FileMaker Go 
Yes 
Custom Web Publishing 
No 
FileMaker WebDirect 
Partial 
Runtime solution 
Partial 
Originated in 
FileMaker Pro 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.
If [Get ( AccountName ) = "[Guest]"]
Go to Layout ["Invoices"]
Show/Hide Menubar [Lock: Off ; Hide]
Show/Hide Toolbars [Hide]
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)