Code: Select all
<html lang="en">
<meta charset="UTF-8">
<head>
<title>Page Title</title>
</head>
<body>
<input type="file">
</body>
</html>
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 580, 280,"file:///Users/infratec/webgadget/webgadget.html")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebViewGadget(0, 10, 10, 580, 280)
SetGadgetText(0,"file:///Users/infratec/webgadget/webgadget.html")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Also drag'n drop works not with the WebGadget but with the WebviewGadget() in macOS.