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 |
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