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: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

WebView.CreateOnPopover

Creates a new webview inside the window on top of popover with the given rectangle.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 8.1 Yes No No No No

MBS( "WebView.CreateOnPopover"; WindowRef; Popover Name; 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
Popover Name The name of the popover to look for on the window. "MyPopover"
x The left coordinate in the popover. 0
y The top coordinate in the popover. 0
w The width of the drop area in the popover. 600
h The height of the drop area in the popover. 400

Result

Returns webviewer reference number or error.

Description

Creates a new webview inside the window on top of popover 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: 10 ]
Set Variable [ $y ; Value: 55 ]
Set Variable [ $w ; Value: 837 - 10 - $x ]
Set Variable [ $h ; Value: 522 - 10 - $y ]
#
Set Variable [ $w ; Value: MBS("WebView.CreateOnPopover"; 0; "MyPopover"; $x; $y; $w; $h) ]
If [ MBS("IsError") = 0 ]
    Set Variable [ $$web ; Value: $w ]
    Set Field [ WebViewer on Popover::URL ; "http://www.mbs-plugins.com" ]
    Set Variable [ $r ; Value: MBS( "WebView.LoadURL"; $$web; WebViewer on Popover::URL) ]
End If

See also

Example Databases


WebView.Create   -   WebView.Cut

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins