Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

Window.Resize

Component: Window
Version: 2.2
Mac OS X: Works
Windows: Works

MBS( "Window.Resize"; WindowRef; width; height; 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
width The new width of the window. 300
height The new height of the window. 200
NoAnimation Optional, wether to avoid animation. Pass 1 to disable animation. Default is 0 to allow animation. 0
Duration Optiona for Mac: the duration. Can be a value between 0.1 and 5.0. 0.5

Result

Returns OK on success.

Description

Resizes the window animated.
On Mac OS X we use Apples functions for animated resizing. On Windows we have our own code. Please make sure on Windows that the window is not maximized as resizing a maximized window puts it in a mode where you can't manual resize it.

Examples

MBS("Window.Resize"; WindowRef; 300; 200)

Feedback: Report problem or ask question.




Links
MBS Realbasic Chart Plugins - Pfarrgemeinde St. Arnulf Nickenich