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.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets script trigger for clicks outside card.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
EventMonitor | 7.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. | 0 | |
X | X position of the card in the parent window. Can be negative for automatic center position. |
-1 | |
Y | Y position of the card in the parent window. Can be negative for automatic center position. You may need to include space for formating, status toolbar and menu bar (inside window on Windows). |
-1 | |
Width | The width of the card window. | 600 | |
Height | The height of the card window. | 400 | |
FileName | The file name where to find the script. | Get(FileName) | |
ScriptName | The name of the script to trigger when a click is received outside the card area. | "Close Card Script" | |
ScriptParameter | Available in MBS FileMaker Plugin 9.3 or newer. The text parameter to pass to the script. |
"Close" | Optional |
ScriptControl | Available in MBS FileMaker Plugin 9.3 or newer. The script control mode. Can be Pause, Halt, Exit or Resume. Default is Pause. |
"pause" | Optional |
Returns OK or error.
Install trigger:
Set Variable [ $r ; Value: MBS( "EventMonitor.Install" ) ]
Set Variable [ $$cardShowing ; Value: 1 ]
Set Variable [ $r ; Value: MBS( "EventMonitor.SetCardWindow"; Get(WindowName); -1; -1; 600; 400; Get(FileName); "Close Script" ) ]
New Window [ Style: Card ; Name: "Card" ; Using layout: “Tabelle” ; Height: 400 ; Width: 600 ]
Close script:
If [ $$cardShowing ]
Set Variable [ $$cardShowing ; Value: 0 ]
Close Window [ Name: "Card" ; Current file ]
Set Variable [ $r ; Value: MBS("EventMonitor.ClearCardWindow") ]
End If
This function checks for a license.
Created 2nd June 2017, last changed 11st June 2019