Easier WebView use

Easier WebView use

Postby Antonio Linares » Tue Feb 06, 2024 8:27 am

We are working to simplify the WebView use, so it can be used the FWH way :-)

Code: Select all  Expand view  RUN
#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
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42113
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Easier WebView use

Postby sygecom » Tue Feb 06, 2024 11:19 pm

Very good, congratulations on the progress.
User avatar
sygecom
 
Posts: 55
Joined: Tue Mar 11, 2008 3:18 am
Location: Brasil

Re: Easier WebView use

Postby vilian » Fri Feb 09, 2024 1: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
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Easier WebView use

Postby Enrrique Vertiz » Sat Feb 10, 2024 1:32 am

Muy interesante, estamos atentos ...
Enrrique Vertiz Pitta
Lima-Peru
xHb 1.23.1026X, Fwh 24.09, BCC74, MySQL 8.0.X, SQLLIB 1.9m
Enrrique Vertiz
 
Posts: 541
Joined: Fri Oct 07, 2005 2:17 pm
Location: Lima - Peru


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: albeiroval, cnavarro, Google [Bot] and 68 guests