Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebView.SetDrawsBackground
Whether to the WebView draws background.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 11.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.SetDrawsBackground"; WebViewerRef; Flag ) More
Parameters
Parameter | Description | Example |
---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | |
Flag | Pass 1 to draw background or 0 to allow transparency. | 0 |
Result
Returns OK or error.
Description
Whether to the WebView draws background.If background drawing is turned off, the web viewer should allow transparent background.
e.g. HTML site, where body has a transparent background color in CSS.
Examples
Make transparent and then load web content with transparent body:
Set Variable [ $r ; Value: MBS("WebView.setDrawsBackground"; "web"; 0) ]
Set Variable [ $r ; Value: MBS("WebView.LoadHTML"; "web"; "<html><body style=\"background-color:transparent;\"><p style=\"background-color: white;\">Hello World 2</p></body></html>") ]
See also
Release notes
- Version 11.5
- Added WebView.SetDrawsBackground to make WebViewer transparent on MacOS and iOS.
Blog Entries
- New in version 11.5 of MBS FileMaker Plugin
- MBS FileMaker Plugin, version 11.5pr3
- Transparent WebViewer
Created 5th October 2021, last changed 13th October 2021