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
Next revision Both sides next revision
built_in:webview [2015/10/28 22:27]
87.143.131.38 [Example - Remote]
built_in:webview [2016/07/12 15:18]
213.104.177.203
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"**
  
 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 67: Line 67:
    app.ShowProgress("Loading...");    app.ShowProgress("Loading...");
    web.LoadUrl( "http:///www.google.com" );    web.LoadUrl( "http:///www.google.com" );
-   WebView.SetOnProgress( callback ) ; 
 } }
  
Line 107: 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.txt ยท Last modified: 2018/08/16 08:46 (external edit)