He incluido un ejemplo de uso del control para ser usado desde aplicaciones Fivewin.
Al principio del ejemplo, he detallado algunas de las webs en las que he basado mi trabajo o que he considerado interesante para las personas que quieran profundizar en este tema.
Este control WebView2 se puede desarrollar utilizando C o C++
Tambi茅n estoy trabajando desde hace tiempo en otra versi贸n que utiliza C++.
Incluyo las librer铆as que son necesarias linkar para poder utilizarlo
S贸lo est谩n inclu铆das las librer铆as para VSC 2019 32 bits.
Se han utilizado las caracter铆sticas que os pueden ser m谩s pr谩cticas.
Considero que el ejemplo es, por s铆 mismo, suficientemente explicativo, pero, cualquier duda o sugerencia, he considerado, que, en lugar de hacer un "manual", ser谩 mejor ir comentando en el foro.
He incluido el programa de instalaci贸n de Microsoft para que puedas utilizar este control en tu ordenador.
Espero que os guste
English
---------
Welcome to FE_WebView2 (preview version)
I have included an example of the use of the control to be used from Fivewin applications.
At the beginning of the example, I have detailed some of the websites on which I have based my work or that I have considered interesting for people who want to delve into this topic.
This WebView2 control can be developed using C or C ++
I am also working for a long time on another version that uses C ++.
I include the libraries that are necessary to link to be able to use it
Only the libraries for VSC 2019 32 bits are included.
The characteristics that can be more practical have been used.
I consider that the example is, by itself, sufficiently explanatory, but, any doubt or suggestion, I have considered that, instead of making a "manual", it will be better to comment on the forum.
I have included the Microsoft installation program so that you can use this control on your computer.
I hope you like it
Download:
https://bitbucket.org/fivetech/fivewin-contributions/downloads/FEWebViewC.zip
METHODS and DATAs
//----------------------------------------------------------------------------//
// Author : Cristobal Navarro Lopez ( c )
// CLASS : TWEBVIEWC
// Date : 18/09/2021
// Version : 0.0918 BETA
//
//----------------------------------------------------------------------------//
#include "Fivewin.ch"
CLASS TWebViewC
DATA cVersion INIT ""
DATA hWnd
DATA cUrl INIT ""
DATA cUrlInit INIT "about:blank"
DATA lMenuPop INIT .T.
DATA lToolsDev INIT .T.
METHOD New( oParent, cUrl ) CONSTRUCTOR
METHOD Activate()
METHOD Close()
METHOD EnableDevTools( lDevTools )
METHOD EnablePopupMnu( lPopMnu )
METHOD End()
METHOD ExecuteScript( cScript )
METHOD ExecuteScriptOnCreate( cScript )
METHOD GoBack()
METHOD GoForward()
METHOD HWndWebView()
METHOD Init( lInit )
METHOD Navigate( cUrl )
METHOD Reload()
METHOD ResizeWebView()
METHOD ShowHtml( cHtml )
METHOD Stop()
METHOD Url( cUrl )
METHOD Version()
ENDCLASS
//----------------------------------------------------------------------------//Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo
El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces