win7x86 pb6.10LTS
why:
"compile without debugger " is ok!
"compile with debugger " is ERROR!
line9:SetGadgetItemText(0, #PB_WebView_HtmlCode, Html$)
[06:53:51] [ERROR] The specified #Gadget is not initialised.
WebViewGadget doc:
Example: with disabled right-click menu
Code: Select all
Html$ = ~"<html style=\"margin:0px;height:100%;width:100%\">"+
~"<body oncontextmenu=\"return false;\" style=\"margin:0px;min-height:100%;width:100%\">"+
~"<button id=\"displayInfo\">Display Info</button>"+
~"</body></html>\n"
OpenWindow(0, 100, 100, 400, 400, "No right click UI", #PB_Window_SystemMenu)
WebViewGadget(0, 0, 0, 400, 400)
SetGadgetItemText(0, #PB_WebView_HtmlCode, Html$)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow

