Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Window.PositionNextDialog

Sets location for next dialog.

Component Version macOS Windows Linux Server iOS SDK
Window 10.0 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Window.PositionNextDialog"; X; Y { ; Width; Height; Flags } )   More

Parameters

Parameter Description Example Flags
X The X position in points to use for the dialog.
Can be empty.
300
Y The Y position in points to use for the dialog.
Can be empty.
200
Width The width in points to use for the dialog.
Can be empty. We check against min/max size for dialog.
500 Optional
Height The height in points to use for the dialog.
Can be empty. We check against min/max size for dialog.
400 Optional
Flags Whether to center dialog.
Pass 1 to center on screen or 0 to not center.
Pass 2 to center in front of the frontmost FileMaker document window.
1 Optional

Result

Returns OK or error.

Description

Sets location for next dialog.
MBS Plugin watches for new windows to show and resize/move the next dialog.
The dialog may briefly show before we can move it.

There is the possibility you position a dialog outside visible screen area, so please check screen size yourself.

To clear the settings, you can call function without parameters or with empty values.

Examples

Shows dialog at specific location:

Set Variable [ $r ; Value: MBS("Window.PositionNextDialog"; 300; 300; 500; 400) ]
Show Custom Dialog [ "Test" ; "Hello World" ]

Center next dialog:

Set Variable [ $r ; Value: MBS("Window.PositionNextDialog"; ""; ""; ""; ""; 1) ]
Show Custom Dialog [ "Test" ; "Hello World" ]

Clear settings:

MBS("Window.PositionNextDialog")

Move next dialog:

Set Variable [ $x ; Value: 500 ]
Set Variable [ $y ; Value: 200 ]
Set Variable [ $r ; Value: MBS("Window.PositionNextDialog"; $x; $y; “”; “”) ]
Show Custom Dialog [ "Test" ; "Hello World" ]

Control where progress dialog will show:

# define where the progress dialog should show.
# We can leave width and height empty to not change it
# move it to bottom of screen.
Set Variable [ $r ; Value: MBS("Window.PositionNextDialog"; 10; Get(ScreenHeight) - 270; ""; "") ]
# run the request
Insert from URL [ Select ; With dialog: Off ; Target: Test::Result ; $URL ; Do not automatically encode URL ]
# clear it
Set Variable [ $r ; Value: MBS("Window.PositionNextDialog") ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 27th December 2019, last changed 16th December 2022


Window.Parent - Window.RemoveFromTaskbar