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: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

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; Right; Bottom )   More

Parameters

Parameter Description Example value
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 100
Top the TOP bound of the window 100
Right the RIGHT bound of the window 500
Bottom the BOTTOM bound of the window 500

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

Created 18th August 2014, last changed 18th August 2014


Window.SetAlpha   -   Window.SetCloseButton

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins