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: 9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5    Statistic    FMM    Blog  

Window.SetBounds

Sets the bounds of the window.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Window 1.0 Yes Yes No No No
MBS( "Window.SetBounds"; WindowRef; Left; Top; Width; Height { ; Animate } )   More

Parameters

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
Left The left bound of the window.
If empty, leave that value unchanged.
100
Top The top bound of the window.
If empty, leave that value unchanged.
100
Width The new width of the window.
If empty, leave that value unchanged.
500
Height The new height of the window.
If empty, leave that value unchanged.
500
Animate Available in MBS FileMaker Plugin 10.5 or newer.
Whether to animate transition on macOS.
Pass 1 to animate or 0 to not.
1 Optional

Description

Sets the bounds of the window.
This is another way of resizing the window. On Windows this function can be used to adjust the size of the application window as well.

Examples

Set Window Bounds

Let(
[
/*-----------------PARAMETERS--------------------*/
WindowRef = 0;
Left = 100;
Top = 100;
Right = 500;
Bottom = 500
];
/*-------------------FUNCTION----------------------*/
MBS(
"Window.SetBounds";
WindowRef;
Left;
Top;
Right;
Bottom
)
)

See also

Blog Entries

Release notes

  • Version 10.5
    • Added Animate parameter for macOS to Window.SetBounds function.

Created 18th August 2014, last changed 20th September 2020


Window.SetAlpha   -   Window.SetCloseButton

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins