Page 1 of 1

Easier WebView use

PostPosted: Tue Feb 06, 2024 8:27 am
by Antonio Linares
We are working to simplify the WebView use, so it can be used the FWH way :-)

Code: Select all  Expand view
#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

Re: Easier WebView use

PostPosted: Tue Feb 06, 2024 11:19 pm
by sygecom
Very good, congratulations on the progress.

Re: Easier WebView use

PostPosted: Fri Feb 09, 2024 1:04 pm
by vilian
I hope webview can be improved quickly... it's looking very promissue ;)

Re: Easier WebView use

PostPosted: Sat Feb 10, 2024 1:32 am
by Enrrique Vertiz
Muy interesante, estamos atentos ...