Page 1 of 1

WebGadget - to old to display Google-Maps - Alternatives?

Posted: Sun Mar 19, 2017 5:29 pm
by PureLust
In one of my projects I need to display a Google-Maps Website.

But the Browser-Implementation used by PB WebGadget() is to old to display a Google-Maps Page.

Code: Select all

URL.s = "https://www.google.com/maps/"

OpenWindow(0,0,0,1000,600,"Browser Test", #PB_Window_SystemMenu | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget)
WebGadget(0,0,0,1000,600,URL)

While WaitWindowEvent() <> #PB_Event_CloseWindow : Wend
Regarding to PBs-Help, the WebGadget() uses "Internet Explorer 4.0+ ActiveX Objekt".
As far as I remember, there was an Option in older PB-Versions, that one can choose between an IE- and FireFox-Engine for the WebGadget() - but this seems to be gone as well. :(

I searched the forum for an alternative and came across the thread "Awesomium - Chromium based Framework", but it also seems to be outdated and the DropBox-Link is not available anymore.

Does anyone has an Idea, how I could implement a Browser-Control which is not as outdated as PBs WebGadget()?

Thanks in advance,
PureLust.

Re: WebGadget - to old to display Google-Maps - Alternatives

Posted: Sun Mar 19, 2017 6:25 pm
by eddy
Hi,

The Windows webgadget becomes pretty useless because of these limitations.
You have to blame M$. :evil:

I think it's possible to embed a chromium app like NW or Electron.
But this solution will increase your package distribution size (75MB - 100MB)

Image

Re: WebGadget - to old to display Google-Maps - Alternatives

Posted: Sun Mar 19, 2017 6:31 pm
by ts-soft

Re: WebGadget - to old to display Google-Maps - Alternatives

Posted: Sun Mar 19, 2017 9:53 pm
by IdeasVacuum
Try incorporating the Midori browser. It's small, fast and cross-platform-ish.

Re: WebGadget - to old to display Google-Maps - Alternatives

Posted: Sun Mar 19, 2017 10:10 pm
by the.weavster
Midori is based on webkit as is Chrome and Opera. Webkit is what I'd really like to see WebGadget based on, especially as css grid support is now being included as standard in quality browsers. I'd also like to be able to expose PB procedures to JavaScript as you can with QtWebKitBridge

Re: WebGadget - to old to display Google-Maps - Alternatives

Posted: Mon Mar 20, 2017 1:04 am
by PureLust
Thanks a lot for all the feedback.

And big thanks to ts-soft !!!
Very interesting Article and Kiffis Code does the trick. Image