WebView2 for Harbour/Fivewin and VSC 2019

Cristobal
Site Admin
Mensajes: 315
Registered for: 3 years 5 months
Spain

Mensaje por Cristobal »

Publico la versión para VSC 32 Bits sin ninguna dependencia de Fivewin, puro harbour
Descargar el adjunto que hay en el primer post y sustituir la librería que adjunto aquí
Espero vuestros comentarios
No tiene los permisos requeridos para ver los archivos adjuntos a este mensaje.
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

ramirezosvaldo
Mensajes: 127
Registered for: 3 years 4 months
Mexico

Mensaje por ramirezosvaldo »

Mi estimado Cristobal, para esta lib hay algún DLL ?

Saludos
Osvaldo Ramirez

ramirezosvaldo
Mensajes: 127
Registered for: 3 years 4 months
Mexico

Mensaje por ramirezosvaldo »

Estimado Cristobal
La lib, que funciones tienes ?
Saludos
Osvaldo Ramirez

Cristobal
Site Admin
Mensajes: 315
Registered for: 3 years 5 months
Spain

Mensaje por Cristobal »

Oswaldo, te adjunto la lista completa, con la nueva versión de la librería actualizada

Código: Seleccionar todo

//----------------------------------------------------------------------------//
// CLASS ( Wrapper )
//----------------------------------------------------------------------------//

CLASS TWebViewC

   METHOD Activate()
   METHOD Back()
   METHOD Close()
   METHOD EnableDevTools( lDevTools )
   METHOD EnablePopupMnu( lPopMnu )
   METHOD End()
   METHOD ExecuteScript( cScript )
   METHOD ExecuteScriptOnCreate( cScript )
   METHOD ForWard()
   METHOD HWndWebView( hWnd )
   METHOD Init( lInit, hWnd, cUrl )
   METHOD Navigate( cUrl )
   METHOD New( oParent, cUrl )
   METHOD Reload()
   METHOD ResizeWebView()
   METHOD ShowHtml( cHtml )
   METHOD Stop()
   METHOD Url( cUrl )
   METHOD Version()
ENDCLASS

//----------------------------------------------------------------------------//
// Functions
//----------------------------------------------------------------------------//

HB_FUNC ACTIVATE_WVIEW2
HB_FUNC CLOSE_WVIEW2
HB_FUNC CONTROLLER_WVIEW2
HB_FUNC ENABLEDEVTOOLS
HB_FUNC ENABLEMENUPOPUP
HB_FUNC EXECUTESCRIPTONCREATE_WVIEW2
HB_FUNC EXECUTESCRIPT_WVIEW2
HB_FUNC GETURL_WVIEW2
HB_FUNC BACK_WVIEW2
HB_FUNC FORWARD_WVIEW2
HB_FUNC MESSAGE_ASJSON
HB_FUNC MESSAGE_ASSTRING
HB_FUNC MESSAGE_TOWINDOW
HB_FUNC NAVIGATE_WVIEW2
HB_FUNC OPENDEVTOOLS
HB_FUNC RELOAD_WVIEW2
HB_FUNC RESIZE_WVIEW2
HB_FUNC SETFOCUS_WVIEW2
HB_FUNC SHOW_HTML
HB_FUNC STOP_WVIEW2
HB_FUNC VERSION_WVIEW2
HB_FUNC WEBCLOSE
HB_FUNC WEBVIEWHWND_WVIEW2
HB_FUNC WEBVIEW_WVIEW2
//----------------------------------------------------------------------------//
No tiene los permisos requeridos para ver los archivos adjuntos a este mensaje.
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

Horizon
Mensajes: 6
Registered for: 2 years 5 months
Turkey

Mensaje por Horizon »

Hi Mr. Navarro,

Código: Seleccionar todo

.innerHTML = "My text to asign to element"
Unfortunately, It does not work.

Código: Seleccionar todo

	oWeb:ExecuteScript( 'alert(document.getElementById( "tridField" ).name);'+;
						alert(document.getElementById( "tridField" ));') 	
	xxx := 'document.getElementById( "tridField" ).innerHTML="'+cTCNo+'");'
	MsgInfo(xxx)
	
	oWeb:ExecuteScript( 'document.getElementById( "tridField" ).focus();'+; 	
												xxx) 	
As you can see, Alert says name is "tridField" and object is "object HTMLInputElement". getElementById is doing its job. But I cannot set it.
Regards,

Hakan ONEMLI

Horizon
Mensajes: 6
Registered for: 2 years 5 months
Turkey

Mensaje por Horizon »

:?
Regards,

Hakan ONEMLI

Horizon
Mensajes: 6
Registered for: 2 years 5 months
Turkey

Mensaje por Horizon »

Hi,

Any progress?
Regards,

Hakan ONEMLI

Horizon
Mensajes: 6
Registered for: 2 years 5 months
Turkey

Mensaje por Horizon »

Hi Mr. Navarro,

Are you OK?.
Regards,

Hakan ONEMLI

Cristobal
Site Admin
Mensajes: 315
Registered for: 3 years 5 months
Spain

Mensaje por Cristobal »

Yes thanks
At this Friday's conference on mod-harbor and tools that we do on Skype Fridays, I explained the status of Webview2 and how it works.
I'm posting another version this weekend and you can do what you want more easily.
But, you have to bear in mind that the webview cannot replace the lack of knowledge of html and js that the user has, obviously.
viewtopic.php?f=13&t=366
At the end of the video
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

Horizon
Mensajes: 6
Registered for: 2 years 5 months
Turkey

Mensaje por Horizon »

Cristobal escribió: Jue Oct 21, 2021 2:45 pm Yes thanks
At this Friday's conference on mod-harbor and tools that we do on Skype Fridays, I explained the status of Webview2 and how it works.
I'm posting another version this weekend and you can do what you want more easily.
But, you have to bear in mind that the webview cannot replace the lack of knowledge of html and js that the user has, obviously.
viewtopic.php?f=13&t=366
At the end of the video
Thank you Mr. Navarro,

of course you are right. I try to learn hmtl and js.

I am looking forward to hear new version.
Regards,

Hakan ONEMLI

Responder