Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0    Statistic  

Window.PositionNextDialog

Sets location for next dialog.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Window 10.0 Yes Yes No No No
MBS( "Window.PositionNextDialog"; X; Y { ; Width; Height; Center } )   More

Parameters

Parameter Description Example value
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 Optional
The width in points to use for the dialog.
Can be empty. We check against min/max size for dialog.
500
Height Optional
The height in points to use for the dialog.
Can be empty. We check against min/max size for dialog.
400
Center Optional
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

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

Blog Entries

Created 27th December 2019, last changed 29th December 2019


Window.Move   -   Window.RemoveMenu

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins