If you include both a WebGadget and WebViewGadget the program will freeze when initializing the second Gadget; see below.
NOTE: Two WebGadget's or two WebViewGadget's work without an issue;
Does Not Work:
Code: Select all
If OpenWindow(0, 100, 100, 800, 400, "Hello", #PB_Window_SystemMenu)
WebGadget(0, 0, 0, 400, 400, "https://www.purebasic.com", #PB_Web_Edge)
WebViewGadget(1, 400, 0, 400, 400)
SetGadgetText(1, "file://" + #PB_Compiler_Home + "examples/sources/Data/WebView/webview.html")
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
Does Work:
Code: Select all
If OpenWindow(0, 100, 100, 800, 400, "Hello", #PB_Window_SystemMenu)
WebGadget(0, 0, 0, 400, 400, "https://www.purebasic.com", #PB_Web_Edge)
WebGadget(1, 400, 0, 400, 400, "", #PB_Web_Edge)
SetGadgetText(1, "file://" + #PB_Compiler_Home + "examples/sources/Data/WebView/webview.html")
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
Does Work:
Code: Select all
If OpenWindow(0, 100, 100, 800, 400, "Hello", #PB_Window_SystemMenu)
WebViewGadget(0, 0, 0, 400, 400)
WebViewGadget(1, 400, 0, 400, 400)
SetGadgetText(0, "https://www.purebasic.com")
SetGadgetText(1, "file://" + #PB_Compiler_Home + "examples/sources/Data/WebView/webview.html")
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf