WebKit Plugin / RS / Xojo Class

Hello

Does there exist a 3rd-party plugin or RS / Xojo class, compatible with modern RS / Xojo, which provides a WebKit browser in a control on a window, on the Windows OS?

I understand that this is possible using the built-in HTMLViewer with renderer=WebKit.

But there is a bug in HTMLViewer relating to keyboard focus, which is a showstopper for my project.

Hence I am enquiring if anyone has coded an equivalent, commercial or non-commercial, which might be available under license.

Thanks

Nope, nothing available , but I would pay a lot for something like that. It’s not an easy task though.

What exactly is this bug?

For one project I compiled the webkit library at

https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=75406&lngWId=1

and add the browser page as an activex control. The compiled library will need to reside in the system folder or within the libs folder of your application to work. The library is written in VB6 but could easily be updated for VS… which is not necessary.

Forgive the ignorance, but how does one go about adding that into a project? Do you have to do something with the .ctl file?

<https://xojo.com/issue/39150>
<https://xojo.com/issue/39149>

In essence, when the WebKit control has the keyboard focus, pressing a ‘backspace’ key is sent to the KeyDown event of a canvas which previously had the focus.

[quote]For one project I compiled the webkit library at

https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=75406&lngWId=1

and add the browser page as an activex control[/quote]

Thanks - I’ll take a look.

The ctl compiles to an ocx file using VB. Place a copy of the ocx in your system(32) folder c:\windows\system32 folder for the Xojo IDE to be able to access it. Goto the Xojo menu and find add activex and select the control. This will add the control to your project explorer, then drag am instance of it to the window as you would any other control. If it doesn’t appear in the Xojo add activex dialog…

open cmd.exe and type

regsvr32 thenameofocx.ocx and it will say “DLL resgistry succeeded.” It should now be accessible in the Xojo add activex menu dialog.

For a compiled stand-alone application, place a copy of the ocx next to the executable in its build folder, or within the Libs folder.

You can alternatively use VB to compile as “activex dll”, which will render a dll rather than an ocx.

Thanks for your replies. I am utterly out of my depth here. In VB6 ( not used for a decade ) I compile the project - all it compiles is the .exe. I could register the WebKit.dll in your binary distribution, but no sign of it in the ActiveX list. If I try to compile just the .ctl ( loaded separately from the .vbp ) I get an error. I am too clueless to do this - any chance of you compiling the .ocx for us?

Apologies for being really wet.

Peter may I ask you why you need Webkit Engine?

I’ll throw together a demo this afternoon… into hour 2 of a 7 hour drive at the moment :slight_smile:

I believe there is a binary distribution of the control and engine at the PSC link in the description as well. But I’ll put together a demo as well.

I don’t have a “need”, but as the Rolling Stones were wont to say “You can’t always get what you want, But if you try sometimes well you might find, You get what you need”. A “want”, because I would like to see what I can do with it, and I am trying to learn about making interesting Activex controls work in RB/Xojo. I am admittedly a bit clueless in this regard.

That said, has anyone got the MS Winsock control to co-operate? I can get it to connect, but not to send data.

Thanks very much Matthew - I look forward to it.