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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
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 |
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.
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>") ]
Created 5th October 2021, last changed 13th October 2021