HMG with Edge WebView2
Moderator: Rathinagiri
- srvet_claudio
- Posts: 2223
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG with Edge WebView2
Hi Jimmy,
the example is created to use the compiler version of mingw that comes with hmg.3.5
the example is created to use the compiler version of mingw that comes with hmg.3.5
- Claudio Ricardo
- Posts: 367
- Joined: Tue Oct 27, 2020 3:38 am
- DBs Used: DBF, MySQL, MariaDB
- Location: Bs. As. - Argentina
Re: HMG with Edge WebView2
Hola Claudio... Se ve genial !!!
Para probarlo tendré que crear una nueva VirtualBox machine con W10 y HMG 3.5 ?
o instalando HMG 3.5 para compilar y solo instalando Edge en W7 se podrá ejecutar ?
Aclaro: Uso Linux y en VirtualBox W7 HP x64 SP1 para programar y aún sigo con HMG 3.4.4
Para probarlo tendré que crear una nueva VirtualBox machine con W10 y HMG 3.5 ?
o instalando HMG 3.5 para compilar y solo instalando Edge en W7 se podrá ejecutar ?
Aclaro: Uso Linux y en VirtualBox W7 HP x64 SP1 para programar y aún sigo con HMG 3.4.4
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
WhatsApp / Telegram: +54 911-63016162
- srvet_claudio
- Posts: 2223
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG with Edge WebView2
Hola Claudio,
Tenes que instalar hmg.3.5 y solo el runtime webview2 de este enlace:
https://go.microsoft.com/fwlink/p/?LinkId=2124703
No necesitas instalar el navegador Edge.
Tenes que instalar hmg.3.5 y solo el runtime webview2 de este enlace:
https://go.microsoft.com/fwlink/p/?LinkId=2124703
No necesitas instalar el navegador Edge.
- Claudio Ricardo
- Posts: 367
- Joined: Tue Oct 27, 2020 3:38 am
- DBs Used: DBF, MySQL, MariaDB
- Location: Bs. As. - Argentina
Re: HMG with Edge WebView2
Ohhh buenisimo !!! sólo espero que al instalar HMG 3.5 no me haga conflicto con la versión anterior que tengo, y puedan convivir
juntas, ya que estoy desarrollando un programa grande en este momento y no quiero arriesgar.
juntas, ya que estoy desarrollando un programa grande en este momento y no quiero arriesgar.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
WhatsApp / Telegram: +54 911-63016162
- AUGE_OHR
- Posts: 2096
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: HMG with Edge WebView2
hi Claudio,
have test it under Windows 11 (Insider) Version 10.0.22000.132 p.s. i wrote this "in" HMG_Webview2
YES ... now i can compile / link Samplesrvet_claudio wrote: ↑Wed Aug 18, 2021 2:03 pm the example is created to use the compiler version of mingw that comes with hmg.3.5
have test it under Windows 11 (Insider) Version 10.0.22000.132 p.s. i wrote this "in" HMG_Webview2
have fun
Jimmy
Jimmy
- AUGE_OHR
- Posts: 2096
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: HMG with Edge WebView2
hi,
i have play with HMG_Webview2 and add TEXTBOX to input URL ! Note : i have extract "C"-Code which are in HB_FUNC.PRG now
my CLICK will not try to "format" "C"-Code in HB_FUNC.PRG
now i want to learn "more" what i can do with Webview2 ...
---
some Question :
as i need "full"-String like "http://www.hmgforum.com" i check for "http" or "https"
now i use "https" ...
---
i can use Mouse-"Navigation"-Button to goto "last" or "next" Website
how can i get "active" URL to show it in Statusbar
---
to check Input Webview2 use "local" Language. how can i set it to "English"
---
Webview2 start with 100 % ... i like to change it to 120 % , how
---
i have to use build_test_webview2.bat
can somebody please help me to build a *.HBP / *.HBC so i can use HMG35 IDE. thx
i have play with HMG_Webview2 and add TEXTBOX to input URL ! Note : i have extract "C"-Code which are in HB_FUNC.PRG now
my CLICK will not try to "format" "C"-Code in HB_FUNC.PRG
now i want to learn "more" what i can do with Webview2 ...
---
some Question :
as i need "full"-String like "http://www.hmgforum.com" i check for "http" or "https"
Code: Select all
PROCEDURE DoNavigate()
LOCAL cNewURL := GetProperty( "Win_1", "Text_Navigate","VALUE")
IF .NOT. "http://" $ LOWER(cNewURL) .OR. .NOT. "https://" $ LOWER(cNewURL)
cNewURL := "https://" + cNewURL
ENDIF
SbarText(cNewURL) // Statusbar only in Fullscreen ?
NAVIGATE_WEBVIEW2( cNewURL )
Return---
i can use Mouse-"Navigation"-Button to goto "last" or "next" Website
how can i get "active" URL to show it in Statusbar
---
to check Input Webview2 use "local" Language. how can i set it to "English"
---
Webview2 start with 100 % ... i like to change it to 120 % , how
---
i have to use build_test_webview2.bat
can somebody please help me to build a *.HBP / *.HBC so i can use HMG35 IDE. thx
have fun
Jimmy
Jimmy
Re: HMG with Edge WebView2
I have a problem:
how can I solve it?
Code: Select all
hbmk2: Error: Referenced, missing, but unknown function(s):
NAVIGATE_WEBVIEW2(), EXECUTESCRIPT_WEBVIEW2(), GETVERSION_WEBVIEW2(),
INIT_WEBVIEW2(), RESIZE_WEBVIEW2()
- AUGE_OHR
- Posts: 2096
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: HMG with Edge WebView2
hi Mol,
if Yes : as i wrote i have "split" "C"-Code into HB_FUNC.PRG
than you need my modify build_test_webview2.bat
do you use my modify Version with TEXTBOX for URL Input
if Yes : as i wrote i have "split" "C"-Code into HB_FUNC.PRG
than you need my modify build_test_webview2.bat
Code: Select all
call build_cpp.bat test_webview2.prg HB_FUNC.PRG -L./WebView2/Win32 -lWebView2Loader -I./WebView2/includehave fun
Jimmy
Jimmy
Re: HMG with Edge WebView2
srvet_claudio wrote: ↑Wed Aug 18, 2021 12:17 am Hi,
this is a slightly improved version with more information to detect and solve errors in webview2 runtime.
Hola a todos, tengo algunas dudas, quizá alguno sepa...
Cree una ventana para tener el WhatsApp pero no logro que inicie el "Zoom" a un cierto valor.
Ya modifiqué la configuración de EDGE pero ni así.
Tengo que Oprimir las teclas Ctrl-"+" y Ctrl-"-" (o Ctrl-Scroll Mouse) para agrandar o
reducir el tamaño pero antes debo darle "Click" a la ventana como para "activarla"
*--------------------------------------------------------------------------------------------------------------------------
Hello everyone, I have some doubts, maybe someone knows ...
I created a window to have the WhatsApp but I can't get it to start the "Zoom" at a certain value.
I already modified the EDGE settings but not like that.
I have to press the keys Ctrl - "+" and Ctrl - "-" (or Ctrl-Scroll Mouse) to enlarge or reduce the size
but first I must give "Click" to the window as to "activate" it
Code: Select all
FUNCTION WhatAppsWeb()
DEFINE WINDOW Win_2 ROW 0 COL 0 WIDTH 500 HEIGHT 600 TITLE "WhatAppsWeb" NOSIZE NOMAXIMIZE CHILD TOPMOST ;
ON INIT ( Keybd_Event( VK_TAB, .T. ) ) ; // SetFocus
ON GOTFOCUS ( Press2Keys( VK_CONTROL, VK_SUBTRACT ), Press2Keys( VK_CONTROL, VK_SUBTRACT ), Press2Keys( VK_CONTROL, VK_SUBTRACT ) )
*
END WINDOW
INIT_WEBVIEW2( Win_2.Handle, "https://web.whatsapp.com/" )
CENTER WINDOW Win_2
ACTIVATE WINDOW Win_2
RETURN
FUNCTION Press2Keys( nVK1, nVK2 )
Keybd_Event( nVK1, .F. )
Keybd_Event( nVK2, .F. )
Keybd_Event( nVK2, .T. )
Keybd_Event( nVK1, .T. )
RETURN nil
Y al seleccionar otro Link de la ventana principal, lo incrusta el la ventana
del WhatsApps ???
*---------------------------------------------------------------------------------------------
And when selecting another Link from the main window, it embeds it in the window
from WhatsApps ???
Si lo hago de otra forma, lo despliega en la ventana principal...
*-------------------------------------------------------------------------------
If I do it in another way, it displays it in the main window ...
*INIT_WEBVIEW2( Win_2.Handle, "https://web.whatsapp.com/" )
NAVIGATE_WEBVIEW2( "https://web.whatsapp.com/" )
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- srvet_claudio
- Posts: 2223
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG with Edge WebView2
Hi,
see this demo (enabled context menu, zoom, get url, devtools, etc)
see this demo (enabled context menu, zoom, get url, devtools, etc)
- Attachments
-
- hmg_webview2_version03.zip
- (2.08 MiB) Downloaded 324 times