User Tools

Site Tools


built_in:webview

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
built_in:webview [2015/10/31 17:04]
stevegarman [Example - Remote]
built_in:webview [2018/08/16 08:46] (current)
Line 6: Line 6:
 You can create a control to display local or remote web pages in your App using the **CreateWebView** method of the **[[built_in:app|app]]** object: You can create a control to display local or remote web pages in your App using the **CreateWebView** method of the **[[built_in:app|app]]** object:
 <code>web = app.CreateWebView( width, height, options, zoom );</code> <code>web = app.CreateWebView( width, height, options, zoom );</code>
-options include **"IngoreErrors", "NoScrollBars", "ScrollFade"**+options include **"IgnoreErrors", "NoScrollBars", "ScrollFade", "Overview", "AllowZoom", "UseBrowser"**.
  
 If you are loading remote web pages, then you might want to use the **SetOnProgress** method to set the name of a callback function that you want called to report the progress of loading the page. If you are loading remote web pages, then you might want to use the **SetOnProgress** method to set the name of a callback function that you want called to report the progress of loading the page.
Line 106: Line 106:
    var html = "<html><head>";    var html = "<html><head>";
    html += "<meta name='viewport' content='width=device-width'>";    html += "<meta name='viewport' content='width=device-width'>";
-   html += "</head><body>Hello World!<br>";+   html += "</head><body style='color:#fff'>Hello World!<br>";
    html += "<img src='Img/Droid2.png'>";    html += "<img src='Img/Droid2.png'>";
    html += "</body></html>";    html += "</body></html>";
built_in/webview.1446311047.txt.gz ยท Last modified: 2015/11/01 01:04 (external edit)