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

- imagen_2021-08-19_140755.png (1.37 MiB) Viewed 3502 times
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 ???

- imagen_2021-08-19_144252.png (1.17 MiB) Viewed 3502 times
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/" )

- imagen_2021-08-19_145335.png (171.75 KiB) Viewed 3502 times