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.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

WebView.Create

Creates a new webview inside the window with the given rectangle.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 7.4 Yes No No No No
MBS( "WebView.Create"; WindowRef; x; y; w; h )   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
x The left coordinate in the window. 0
y The top coordinate in the window. 0
w The width of the drop area in the window. 600
h The height of the drop area in the window. 400

Result

Returns webviewer reference number or error.

Description

Creates a new webview inside the window with the given rectangle.
This is WebKit 1.x view, so all the PDF/Image rendering functions, download delegate and callback should work.

The view is released automatically when window closes.
Webviewers created via WebView.Create or WebView.CreateOnPopover are independent of FileMaker, so they don't reload with a record change. They also don't print with the layout and stay if you change the layout.

Examples

Create WebView:

Set Variable [ $x ; Value: 40 ]
Set Variable [ $y ; Value: 80 ]
Set Variable [ $w ; Value: 970 ]
Set Variable [ $h ; Value: 440 ]

Set Variable [ $$web ; Value: MBS("WebView.Create"; 0; $x; $y; $w; $h) ]
Set Variable [ $r ; Value: MBS( "WebView.LoadURL"; $$web; "http://www.mbs-plugins.com") ]

See also

Example Databases

Blog Entries

Created 26th August 2017, last changed 16th October 2018


WebView.CopyFormattedText   -   WebView.CreateOnPopover

Feedback: Report problem or ask question.




Links
MBS Xojo blog