Webview class into Resource Dialog?
Posted: Fri Feb 17, 2023 8:31 am
Hi
I saw FWH\sample use TWindow way, how to use WebView into Resource Dialog
I saw FWH\sample use TWindow way, how to use WebView into Resource Dialog
www.FiveTechSoft.com
https://forums.fivetechsupport.com/~fivetec1/forums/
https://forums.fivetechsupport.com/~fivetec1/forums/viewtopic.php?t=42799
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oDlg, oWebView
DEFINE DIALOG oDlg SIZE 500, 400
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oWebView := TWebView():New(), oWebView:SetParent( oDlg ), oWebView:Navigate( "http://www.google.com" ), .T. )
return nil
Dear Antonio,Antonio Linares wrote:Dear Richard,
Code: Select all | Expand
#include "FiveWin.ch" function Main() local oDlg, oWebView DEFINE DIALOG oDlg SIZE 500, 400 ACTIVATE DIALOG oDlg CENTERED ; ON INIT ( oWebView := TWebView():New(), oWebView:SetParent( oDlg ), oWebView:Navigate( "http://www.google.com" ), .T. ) return nil
Code: Select all | Expand
FUNCTION TestWebView()
LOCAL oDlg, oWebView
DEFINE DIALOG oDlg RESOURCE "TestWebView"
ACTIVATE DIALOG oDlg CENTER ;
ON INIT ( oWebView := TWebView():New(), oWebView:SetParent( oDlg ), oWebView:Navigate( "http://www.google.com" ) , .T. )
return nil
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd ;
ON CLICK Test()
MsgInfo( "ok" )
return nil
function Test()
local oDlg, oWebView
DEFINE DIALOG oDlg SIZE 500, 400
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oWebView := TWebView():New(), oWebView:SetParent( oDlg ), oWebView:Navigate( "http://www.google.com" ), .T. )
return nil