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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    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 )

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 OK 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 when window closes.

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


WebView.zoomPageOut   -   WinSendMail.AddAttachmentContainer

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins