WebGadget()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: WebGadget()

Post by the.weavster »

DarkDragon wrote:There is no vanilla webkit implementation afaik. They are either connected to Qt or GTK.
@Fred
How easy would it be to build GTK3 applications for Windows? I'm not suggesting the compiler should include all the *.dll files with this option but if it were possible to set GTK3 as the subsystem on a Windows build on the understanding we've got to source any dependencies ourselves I'd be very happy with that.


Edit:
As this is a bit of a tangent I have posted a new feature request for it.
Last edited by the.weavster on Wed May 17, 2017 8:11 am, edited 1 time in total.
ramme
User
User
Posts: 72
Joined: Fri Mar 31, 2017 8:52 am
Location: Fortuna California

Re: WebGadget()

Post by ramme »

In reply to Fred:
SB uses your browser for its gadget, it's not the same at all than PB.
I tried, unsuccessfully, to access an HTML5 app with the SB webgadget.
That's why I thought it was using the same one as PB.
If it is supposed to work, then I will try again.

Are you planning on having SB generate CSS and HTML files in the future?
Or are they too alien to be generated from basic?
comm5
New User
New User
Posts: 4
Joined: Mon Jul 17, 2017 7:19 pm

Re: WebGadget()

Post by comm5 »

Use this code to see. it is possible to get your hands on html5 support:

http://aftermath-creations.net/viewtopic.php?f=16&t=86
ramme
User
User
Posts: 72
Joined: Fri Mar 31, 2017 8:52 am
Location: Fortuna California

Re: WebGadget()

Post by ramme »

comm5 suggested http://aftermath-creations.net/viewtopic.php?f=16&t=86.

It does in fact allow HTML5. Unfortunately it uses the ancient PB WebBrowser and IE11 emulation.

Code: Select all

Procedure Start() ;use IE11 as Webgadget html5 
  RegCreateKeyValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", GetFilePart(ProgramFilename()), "11001", #REG_DWORD, ".")
  MainFormShow()
EndProcedure
The problem is that IE is being discontinued and new advances to HTML5 are not being supported.
It is really annoying now and will only get worse.
User avatar
tj1010
Enthusiast
Enthusiast
Posts: 624
Joined: Mon Feb 25, 2013 5:51 pm
Location: US or Estonia
Contact:

Re: WebGadget()

Post by tj1010 »

The only alternative is the webkit libraries..

If I need a JS or render engine(usually for something like web bots) I usually just use .NET. Mostly because I need to interact with dynamic DOM. In PB you have to deal with a lot of COM structs and you still can't do everything with existing PBI.
The truth hurts.
User avatar
PureBasti
New User
New User
Posts: 8
Joined: Sat Oct 13, 2018 9:02 am

Re: WebGadget()

Post by PureBasti »

Whats with WebView2?
I think the WebGadget should use this instead of the old WebView.

https://learn.microsoft.com/de-de/micro ... /webview2/
infratec
Always Here
Always Here
Posts: 6874
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: WebGadget()

Post by infratec »

As long as Fred doesn't implement it natively, you can use this:

viewtopic.php?p=592281#p592281
Post Reply