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


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