ENIGMA Forums

Outsourcing saves money => Programming Help => Topic started by: time-killer-games on July 31, 2014, 08:47:06 pm

Title: Creating a HtmlView control on Linux
Post by: time-killer-games on July 31, 2014, 08:47:06 pm
*Windows has by default an IE based ActiveX control for embeding HTML in dialogs.
*Macintosh has by default a Safari based control for embeding HTML in dialogs.
*WTF is the Linux equivalent? Me needs it.

Blitzmax doesn't have a WebView control on Linux, it's more of a raw text viewer than anything. They said this is because Linux has no equivalent. If Linux does have one I assume it's Firefox based but I've googled everywhere and can't find shit. If ENIGMA supported a Linux WebView control, I would trash Blitzmax (other than for Mac use) and use ENIGMA right way.
Title: Re: Creating a HtmlView control on Linux
Post by: edsquare on July 31, 2014, 09:49:33 pm
*Windows has by default an IE based ActiveX control for embeding HTML in dialogs.
*Macintosh has by default a Safari based control for embeding HTML in dialogs.
*WTF is the Linux equivalent? Me needs it.

Blitzmax doesn't have a WebView control on Linux, it's more of a raw text viewer than anything. They said this is because Linux has no equivalent. If Linux does have one I assume it's Firefox based but I've googled everywhere and can't find shit. If ENIGMA supported a Linux WebView control, I would trash Blitzmax (other than for Mac use) and use ENIGMA right way.

You can use webkit (from safari I think) in linux, not sure if that's what you need since I have no idea what you want to do.

http://www.linuxjournal.com/magazine/using-webkit-your-desktop-application
Title: Re: Creating a HtmlView control on Linux
Post by: Goombert on July 31, 2014, 09:53:18 pm
You could also use wxWidgets, Qt Framework (which is webkit based I think), or possibly some GTK project. Java/Swing is also an option but don't expect it to render too much advanced HTML or HTML5 for that matter.
Title: Re: Creating a HtmlView control on Linux
Post by: time-killer-games on July 31, 2014, 10:01:42 pm
Is it currently possible for me to do this in EDL and/or enigma's C++?

Edit.

Okay nevermind, edsquare you have exactly what I need - thanks for the link!!! :D
Title: Re: Creating a HtmlView control on Linux
Post by: edsquare on July 31, 2014, 10:12:49 pm
Is it currently possible for me to do this in EDL and/or enigma's C++?

Edit.

Okay nevermind, edsquare you have exactly what I need - thanks for the link!!! :D

What do you want to do?

If it's on wxwidgets, gtk and qt then it's accesible for C++; not sure about EDL though.
Title: Re: Creating a HtmlView control on Linux
Post by: time-killer-games on July 31, 2014, 10:18:49 pm
I have a point-and-click escape game I designed in pure HTML but online it runs slow as hell and it has very limited browser compatibility so I'm "converting" it to "native" or at least disguising it as that it can run locally at full speed while being standalone. An HTML container if you will. My game doesn't work at all in Chrome or Firefox. Works perfect in IE and Safari. Since Qt's WebKit is Safari based your suggestion is perfect. Thanks again!! :D

Edit.

It still needs to be built for Mac using my existing BlitzMax code, and I still need to write and compile the Linux equivalent in Qt, but I do have it written and compiled for Windows already using GM 8.1 if you're interested. :D Get it here - http://timekillergames.weebly.com/cabin-fever-escape-3d.html
Title: Re: Creating a HtmlView control on Linux
Post by: Goombert on July 31, 2014, 11:16:10 pm
Write a widget system extension and you can use whatever widgets you want.
Title: Re: Creating a HtmlView control on Linux
Post by: time-killer-games on August 01, 2014, 11:53:45 am
That won't be needed Bob, I'll just use Qt cold turkey. Shouldn't be that hard since what I'm after is so basic.