This shows you the differences between two versions of the page.
built_in:webview [2014/12/05 13:42] 162.252.85.172 [Methods] |
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: | ||
- | < | ||
- | 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. | ||
- | |||
- | < | ||
- | < | ||
- | 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. | ||
- | |||
- | < | ||
- | ===== Methods ===== | ||
- | ^Method ^Description ^ | ||
- | |WebView.Back() | | | ||
- | |WebView.CanGoBack() | | | ||
- | |WebView.CanGoForward() | | | ||
- | |WebView.Destroy() | | | ||
- | |WebView.Execute( code ) | | | ||
- | |WebView.Forward() | | | ||
- | |WebView.GetAbsHeight() | | | ||
- | |WebView.GetAbsWidth() | | | ||
- | |WebView.GetHeight() | | | ||
- | |WebView.GetPosition() | | | ||
- | |WebView.GetType() | | | ||
- | |WebView.GetVisibility() | | | ||
- | |WebView.GetWidth() | | | ||
- | |WebView.LoadHtml( html, | ||
- | |WebView.LoadUrl( url,options ) | | | ||
- | |WebView.Release() | | | ||
- | |WebView.SetBackColor( p1 ) | | | ||
- | |WebView.SetBackGradient( p1, | ||
- | |WebView.SetBackGradientRadial( p1, | ||
- | |WebView.SetBackground( p1,p2 ) | | | ||
- | |WebView.SetMargins( left, | ||
- | |WebView.SetOnProgress( callback ) | | | ||
- | |WebView.SetPadding( p1,p2,p3,p4 ) | | | ||
- | |WebView.SetPosition( p1,p2,p3,p4 ) | | | ||
- | |WebView.SetScale( x,y ) | | | ||
- | |WebView.SetSize( p1,p2 ) | | | ||
- | |WebView.SetVisibility( HideShow ) | | |