All functions   Mac OS X   Windows   Crossplatform   Components   New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0  

Window.FindByTitle

Component: Window
Mac OS X: Works
Windows: Works

MBS( "Window.FindByTitle" ; WindowName )

Parameters

Parameter Description Example value
WindowName The Name of the window to find MBS_DevTool

Description

This function can be used to find the Reference to the window. The reference is the Operating System’s unique ID for the the window. Many of the other functions use the WindowReference to target the window.

Examples

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
)
)

Feedback: Report problem or ask question.