PB 6.20 beta 2 (x64) Issue with invisible WebViewGadget()
Posted: Thu Jan 16, 2025 5:46 pm
I guess that an invisible WebViewGadget() does not work!
BTW: We had a similar issue with the WebGadget()
[Done] PB 6.10 beta 1 Error with invisible window and Webgadet
Some code to test:
BTW: We had a similar issue with the WebGadget()
[Done] PB 6.10 beta 1 Error with invisible window and Webgadet
Some code to test:
Code: Select all
Global local_url$ = "file://" + "C:\Temp\Intelligenz.pdf" ; <<< change this to your own file.
If OpenWindow(0, 0, 0, 600, 600, "#1 WebGadget <working>", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_Invisible)
HideWindow(0, 0) ; <-- because of this line at this location it works
WebViewGadget(0, 10, 10, 580, 580)
SetGadgetText(0, local_url$)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
; ---
If OpenWindow(0, 0, 0, 600, 600, "#2 WebGadget <not working>", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_Invisible)
WebViewGadget(0, 10, 10, 580, 580) ; <-- invisible WebViewGadget() does not work!
HideWindow(0, 0)
SetGadgetText(0, local_url$)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
; ---
If OpenWindow(0, 0, 0, 600, 600, "#3 WebGadget <working>", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebViewGadget(0, 10, 10, 580, 580)
SetGadgetText(0, local_url$)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf