There is a new control called WEBVIEW for Android compilations. In it, you can open websites in the form of a control in the dialogs. It can be used for example like this:
The %WS_JAVASCRIPT allows the control to execute the javascript code in the invoked URL. Normally popup windows are disabled but the %WS_ALLOWPOPUPS allows the website to open dialogs via javascript code.
The URL can be changed with CONTROL SET TEXT, If the text is an URL (starts with "http") the control will try to load the welsite, otherwise the text will be set to the control as HTML code directly.
As a security meassure, CONTROL GET TEXT will not retrieve the HTML code in the control unless it is loaded manually. For URL loaded websites, this statement will only return the URL of the website loaded.
Other control statements like CONTROL SET COLOR or CONTROL SET STYLE, may not have effect on it.
This control has the same limitations as any mobile web browser, for example youtube videos need to be started manually via clicking the play button.
Code:
[FONT="Courier New"][B] [COLOR="Blue"]CONTROL[/COLOR] [COLOR="Blue"]ADD[/COLOR] [COLOR="Blue"]WEBVIEW[/COLOR][COLOR="Black"],[/COLOR] [COLOR="Black"]hDlg[/COLOR][COLOR="Black"],[/COLOR] [COLOR="Red"]%ID_FORUMS[/COLOR][COLOR="Black"],[/COLOR] [COLOR="DarkGreen"]"https://www.powerbasic.com/"[/COLOR][COLOR="Black"],[/COLOR] [COLOR="Black"]0[/COLOR][COLOR="Black"],[/COLOR] [COLOR="Black"]0[/COLOR][COLOR="Black"],[/COLOR] [COLOR="Black"]360[/COLOR][COLOR="Black"],[/COLOR] [COLOR="Black"]300[/COLOR][COLOR="Black"],[/COLOR] [COLOR="Red"]%WS_JAVASCRIPT[/COLOR][/B][/FONT]
The URL can be changed with CONTROL SET TEXT, If the text is an URL (starts with "http") the control will try to load the welsite, otherwise the text will be set to the control as HTML code directly.
As a security meassure, CONTROL GET TEXT will not retrieve the HTML code in the control unless it is loaded manually. For URL loaded websites, this statement will only return the URL of the website loaded.
Other control statements like CONTROL SET COLOR or CONTROL SET STYLE, may not have effect on it.
This control has the same limitations as any mobile web browser, for example youtube videos need to be started manually via clicking the play button.
Comment