Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2    Statistic  

Window.Move

Moves the window animated.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Window 2.2 Yes Yes No No No

MBS( "Window.Move"; WindowRef; X; Y { ; NoAnimation; Duration } )

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
X The new X position of the window. 300
Y The new Y position of the window. 200
NoAnimation Optional
Whether to avoid animation. Pass 1 to disable animation. Default is 0 to allow animation.
0
Duration Optional
The duration in seconds. Can be a value between 0.1 and 5.0.
0.5

Result

Returns OK on success.

Description

Moves the window animated.
On Mac OS X we use Apples functions for animated move. On Windows we have our own code.

Examples

Moves a window:

MBS("Window.Move"; $WindowRef; 300; 200)

See also

Example Databases


Window.ModalDialogFront   -   Window.RemoveMenu

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos