in PB 6.30 x64, the WebGadget and the WebViewGadget shows always a 1 pixel border arround.
Code: Select all
If OpenWindow(0, 0, 0, 400, 80, "Web border test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebViewGadget(0, 0, 0, 400, 20)
SetGadgetItemText(0, #PB_WebView_HtmlCode, "<html><head></head><body style='background-color: red;'></body></html>")
WebGadget(1, 0, 20, 400, 20, "")
SetGadgetItemText(1, #PB_Web_HtmlCode, "<html><head></head><body style='background-color: blue;'></body></html>")
WebViewGadget(2, 0, 40, 400, 20)
SetGadgetItemText(2, #PB_WebView_HtmlCode, "<html><head></head><body style='background-color: green;'></body></html>")
WebGadget(3, 0, 60, 400, 20, "")
SetGadgetItemText(3, #PB_Web_HtmlCode, "<html><head></head><body style='background-color: yellow;'></body></html>")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

