Apparently something got mixed up.
At the moment you can only set the HTML text with SetGadgetText() and not the URL. See also:
https://www.purebasic.fr/english/viewto ... 76#p613076
However, this one works (with the WebGadget()):
Code: Select all
If OpenWindow(0, 0, 0, 800, 800, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 0, 0, 800, 800, "", #PB_Web_Edge)
SetGadgetText(0, "https://www.posemotion.com/game/index.html")
; Note: if you want to use a local file, change last parameter to "file://" + path + filename
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf