User Tools

Site Tools


built_in:webview

Differences

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

Link to this comparison view

built_in:webview [2014/09/17 19:08]
stevegarman created
built_in:webview [2018/08/16 08:46]
Line 1: Line 1:
-====== WebView control ====== 
-===== Create ===== 
-You can create a control to display local or remote web pages in your App using the CreateWebView method of the app object: 
-<code>web = app.CreateWebView( width, height );</code> 
-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. 
  
-You can use the LoadUrl method to load an internal or external web page or the LoadHtml method to load text directly from within your App. 
- 
-<code> web.LoadUrl( url );</code> 
-<code> web.LoadHtml( html, baseFolder );</code> 
-Note: Using a WebView can be a good way of displaying colored and formatted text areas in your App. If you set the BackColor to a transparent color you can show formatted text over a background image. 
- 
-If you need to, you can use the Execute method to execute JavaScript code within the WebView. 
- 
-<code> web.Execute( text );</code> 
-===== Methods ===== 
-^Method ^Description ^ 
-|web.Back| | 
-|web.Execute| | 
-|web.Forward| | 
-|web.GetHeight| | 
-|web.GetVisibility| | 
-|web.GetWidth| | 
-|web.LoadHtml| | 
-|web.LoadUrl| | 
-|web.Release| | 
-|web.SetBackColor| | 
-|web.SetBackGradient| | 
-|web.SetBackGradientRadial| | 
-|web.SetBackground| | 
-|web.SetMargins| | 
-|web.SetOnProgress| | 
-|web.SetPadding| | 
-|web.SetPosition| | 
-|web.SetSize| | 
-|web.SetVisibility| | 
built_in/webview.txt ยท Last modified: 2018/08/16 08:46 (external edit)