Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Overlay.AddWebViewer

Adds a web viewer to an overlay.

Component Version macOS Windows Linux Server iOS SDK
Overlay 14.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "Overlay.AddWebViewer"; OverlayRef )   More

Parameters

Parameter Description Example
OverlayRef The overlay window reference number. $overlay

Result

Returns webviewer reference number or error.

Description

Adds a web viewer to an overlay.
The web pages loaded can define a transparent background to make the whole page transparent. Then you can have things on top, that can have round borders or other transparency effects.
e.g. the body may be set to style="background:rgba(255, 255, 255, 0); margin: 0; height: 100%; overflow: hidden;" and a div in front of it could have round rectangles and a red background with style="border-radius: 15px; background:rgba(255, 100, 100, 1); height:100px; padding:5px;".
If the loaded website has no background, mouse clicks may fall through.

Examples

Creates an overlay with a web viewer and load an URL into it:

Set Variable [ $overlay ; Value: MBS("Overlay.Create") ]
Set Variable [ $r ; Value: MBS("Overlay.SetFrame"; $overlay; 100; 100; 300; 120) ]
Set Variable [ $$web ; Value: MBS("Overlay.AddWebViewer"; $overlay) ]
Set Variable [ $r ; Value: MBS("WebView.LoadURL"; $$web; "https://monkeybreadsoftware.com/filemaker/examples/transparent.html") ]
Set Variable [ $r ; Value: MBS("Overlay.SetVisible"; $overlay; 1) ]
Set Variable [ $$overlay ; Value: $overlay ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 17th March 2024, last changed 20th November 2025


OCR.WriteToPDF - Overlay.Alpha