Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Window.SetBounds
Sets the bounds of the window.
Component | Version | macOS | Windows | Linux | Server | 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
Release notes
- Version 10.5
- Added Animate parameter for macOS to Window.SetBounds function.
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 20th September 2020