How to set URL in new WebViewGadget ?
SetGadgetText set text webpage source.
I do this with success, But I think there's something simpler ?
Code: Select all
OpenWindow (0, 0, 0, 1000, 800,"", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebViewGadget(0, 10, 10, 980, 780)
*Buf = ReceiveHTTPMemory("https://www.purebasic.fr")
SetGadgetText(0, PeekS(*Buf, MemorySize(*Buf), #PB_UTF8 | #PB_ByteLength))
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow

