Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Menubar.SetMenuCommandVisible
Show or hide a menu command.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Menubar | 5.0 | Yes | Yes | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The ID or path to the menu entry. Use Menubar.ListMenuCommands to find out the IDs and names. |
49297 |
| Visible | The new visible state. Pass 1 to make visible and 0 to hide. | 1 |
Result
Returns OK or error.
Description
Show or hide a menu command.This allows you to remove menu entries by path/ID from the FileMaker menu, so user cannot longer use it. The change is not permanent and whenever FileMaker rebuilds the menu, all menu entries are back.
Examples
Hide preferences menu command:
MBS("Menubar.SetMenuCommandVisible"; 49153; 0)
Hide service menu in FileMaker Pro Advanced in German:
MBS("Menubar.SetMenuCommandVisible"; "FileMaker Pro Advanced¶Dienste"; 0)
See also
Blog Entries
- MBS FileMaker Plugin, version 5.4pr5
- MBS FileMaker Plugin 5.0 for OS X/Windows - More than 3000 Functions In One Plugin
Created 15th November 2014, last changed 17th June 2018
Menubar.SetMenuCommandTitle - MessageComposer.AddAttachmentContainer
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins