Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Sets the auto resizing mask.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Webview | 7.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | |
Value | The new setting. | 4+8 |
Returns OK or error.
Name | Value | Description |
NotSizable | 0 | The view cannot be resized. |
MinXMargin | 1 | The left margin between the view and its superview is flexible. |
WidthSizable | 2 | The view’s width is flexible. |
MaxXMargin | 4 | The right margin between the view and its superview is flexible. |
MinYMargin | 8 | The bottom margin between the view and its superview is flexible. |
HeightSizable | 16 | The view’s height is flexible. |
MaxYMargin | 32 | The top margin between the view and its superview is flexible. |
Make the WebViewer stay on position in window:
MBS( "WebView.SetAutoResizingMask"; "web"; 4+8 )
Resize with window growing:
MBS( "WebView.SetAutoResizingMask"; $$web; 4+2+8+16 )
This function checks for a license.
Created 14th November 2017, last changed 4th November 2021