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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Registers a new toolbar button.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Toolbar Window | 4.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
Identifier | The toolbar identifier. Must be an unique string. | "Test" |
FileName | The file name of the FileMaker database where the script is located. | "Toolbar.fmp12" |
ScriptName | The name of the script to call when toolbar item is pressed. | "ToolbarScript" |
Parameter | The parameter to pass to the script. This can be same as identifier. Using different parameters allows you to use one script for all toolbar items. | "SwitchToMainLayout" |
Label | The label, which normally appears in the toolbar and in the overflow menu. | "Hello" |
PaletteLabel | The label that appears when it is in the customization palette. Can be same as label or different. | "Hello World" |
Tooltip | The tooltip for the label! | "click me" |
Image | The image to use for the toolbar item. Pass a container value with JPEG, TIFF, PNG or other image formats. | $image |
Returns OK or error.
Register custom button:
Set Variable [$r; MBS( "Toolbar.Install" ) ]
Set Variable [$r; MBS( "Toolbar.Register"; "TestItem"; Get(FileName); "ToolbarScript"; ""; "MBS Button"; "MBS Button"; "Just a test button"; Toolbar::Image ) ]
This function checks for a license.
Created 20th August 2014, last changed 20th November 2021