Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  


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


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


Returns OK or error.


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.


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

Blog Entries

Created 5th October 2021, last changed 13th October 2021

WebView.SetCustomUserAgent - WebView.SetEditable

Feedback: Report problem or ask question.

MBS FileMaker blog

Start Chat