Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Menubar.SetMenuCommandTitle
Sets the title of a menu item.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Menubar | 6.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Path | The ID or path to the menu entry. Use Menubar.ListMenuCommands to find out the IDs and names. |
49297 | |
Title | The new menu item title. | "Hello" | Optional |
Result
Returns OK or error.
Description
Sets the title of a menu item.Examples
Rename menu entry on Mac:
MBS("Menubar.SetMenuCommandTitle"; "FileMaker Pro Advanced¶FileMaker Pro Advanced ausblenden"; "Hello")
Sets a menu entry on Windows:
MBS("Menubar.SetMenuCommandTitle"; "Datei¶Verwalten"; "Hello")
Rename hide menu command:
MBS("Menubar.SetMenuCommandTitle"; "FileMaker Pro Advanced¶Hide FileMaker Pro Advanced"; "Hide MyApp")
Rename quite menu item:
MBS("Menubar.SetMenuCommandTitle"; "FileMaker Pro Advanced¶Quit FileMaker Pro Advanced"; "Quit MyApp")
Rename whole application menu:
Set Variable [ $r ; Value: MBS("App.SetProcessName"; "My Great App") ]
Set Variable [ $r ; Value: MBS("Menubar.SetMenuCommandTitle"; "FileMaker Pro¶Hide FileMaker Pro"; "Hide My Great App") ]
Set Variable [ $r ; Value: MBS("Menubar.SetMenuCommandTitle"; "FileMaker Pro¶Quit FileMaker Pro"; "Quit My Great App") ]
Set Variable [ $r ; Value: MBS("Menubar.SetMenuCommandTitle"; "FileMaker Pro¶About FileMaker Pro..."; "About My Great App...") ]
See also
- App.SetProcessName
- Menubar.ListMenuCommands
- Menubar.SetMenuCommandShortcut
- Menubar.SetMenuCommandVisible
Blog Entries
This function checks for a license.
Created 7th February 2016, last changed 14th July 2022
Menubar.SetMenuCommandShortcut - Menubar.SetMenuCommandVisible