Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Window.ResizeContentView

Resizes content view of window.

Component Version macOS Windows Linux Server iOS SDK
Window 6.0 ✅ Yes ❌ No ❌ No ❌ No ❌ No

Deprecated

This function was deprecated.

MBS( "Window.ResizeContentView"; WindowRef { ; X; Y; W; H } )   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
X Delta for x position of content view.
Use positive value to move to right or negative to move to left.
0 Optional
Y Delta for y position of content view.
Use positive value to move to top or negative to move to bottom.
-5 Optional
W Delta for width of content view.
Use positive value to make wider or negative value to make narrower.
0 Optional
H Delta for height of content view.
Use positive value to make heigher or negative value to make smaller.
0 Optional

Result

Returns OK or error.

Description

Resizes content view of window.
This allows you to move the content view within any window.
e.g. on a FileMaker window to stretch content to move scrollbars out of sight.

Examples

Resizes to hide scrollbar partial:

MBS("Window.ResizeContentView"; 0; 0; -5; 0; 5)

Reset content view:

MBS("Window.ResizeContentView"; $window; 0; 0; 0; 0)

Resizes to hide scrollbar:

MBS("Window.ResizeContentView"; 0; 0; -16; 0; 16)

Hide bottom area with controls:

MBS("Window.ResizeContentView"; 0; 0; -16; 0; 16)

See also

Release notes

Blog Entries

This function checks for a license.

Created 13th December 2015, last changed 7th April 2021


Window.Resize - Window.RunCommand