FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Easier WebView use
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Easier WebView use
Posted: Tue Feb 06, 2024 08:27 AM
We are working to simplify the WebView use, so it can be used the FWH way :-)
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oWnd, oWebView, oContent, oLink1, oLink2

   DEFINE WINDOW oWnd SIZE 2000, 1200

   @ 0, 0 WEBVIEW oWebView OF oWnd HTML "file://" + hb_DirBase() + "index.html" SIZE 2000, 1200

   REDEFINE ITEM oContent ID "content" OF oWebView 

   REDEFINE ITEM oLink1 ID "GiftCode" OF oWebView ;
      ON CLICK oContent:SetHTML( "GiftCode" )

   REDEFINE ITEM oLink2 ID "TopReview" OF oWebView ;
      ON CLICK oContent:SetHTML( "TopReview" )

   ACTIVATE WINDOW oWnd CENTERED ;
      VALID ( oWebView:End(), .T. )

return nil
https://github.com/FiveTechSoft/screenshots/blob/master/webview_easy1.gif?raw=true
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 58
Joined: Tue Mar 11, 2008 03:18 AM
Re: Easier WebView use
Posted: Tue Feb 06, 2024 11:19 PM

Very good, congratulations on the progress.

Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: Easier WebView use
Posted: Fri Feb 09, 2024 01:04 PM
I hope webview can be improved quickly... it's looking very promissue ;)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 582
Joined: Fri Oct 07, 2005 02:17 PM
Re: Easier WebView use
Posted: Sat Feb 10, 2024 01:32 AM

Muy interesante, estamos atentos ...

Enrrique Vertiz Pitta

Lima-Peru

xHb 1.23.1026X, Fwh 25.01, BCC74, MySQL 8.0.X, SQLLIB 1.9m

Continue the discussion