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
This function can be used to find the Reference to the window.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Window | 1.1 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
WindowName | The Name of the window to find | MBS_DevTool |
Returns window reference number or error.
Application Window Window Ref
Let(
[
/*-----------------PARAMETERS--------------------*/
WindowName =
Case(
Position(Get ( ApplicationVersion ); "Advanced"; 1; 1);"FileMaker Pro Advanced";
"FileMaker Pro"
)
];
/*-------------------FUNCTION----------------------*/
MBS(
"Window.FindByTitle";
WindowName
)
)
Set the Transparency of a window by name
Let(
[
/*-----------------PARAMETERS--------------------*/
FileMakerApplicationWindowName =
Case(
Position(Get ( ApplicationVersion ); "Advanced"; 1; 1);"FileMaker Pro Advanced";
"FileMaker Pro"
);
WindowRef =
MBS(
"Window.FindByTitle";
FileMakerApplicationWindowName
);
Alpha = .5
];
/*-------------------FUNCTION----------------------*/
MBS(
"Window.SetAlpha";
WindowRef;
Alpha
)
)
State of the Window Close Button
Let(
[
windowRef = MBS("Window.FindByTitle"; Get(WindowName))
];
GetAsBoolean(
MBS(
"Window.HasCloseButton";
WindowRef
) = "true"
)
)
Hide a window by name
Let(
[
/*-----------------PARAMETERS--------------------*/
WindowRef = MBS( "Window.FindByTitle" ; "My Window")
];
/*-------------------FUNCTION----------------------*/
MBS(
" Window.Hide ";
WindowRef
)
)
Find window:
MBS( "Window.FindByTitle" ; Get(WindowName))
This function is free to use.
Created 18th August 2014, last changed 10th May 2015