Hi
I saw FWH\sample use TWindow way, how to use WebView into Resource Dialog
#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
Antonio Linares wrote:Dear Richard,
- Code: Select all Expand view
#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
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
#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
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 54 guests