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.4
7.5
8.0
8.1
8.2
8.3
8.4
8.5
9.0
9.1
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 |
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 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: 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
Blog Entries
- MBS FileMaker Plugin v8.1 with 5100 Functions In One Plugin
- MBS FileMaker Plugin 8.1
- MBS FileMaker Plugin, version 8.1pr4
- WebViewer on Popover with MBS Plugin
Created 16th February 2018, last changed 16th October 2018
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos