SWV: A simple HTML/JS desktop GUI engine for PB

Everything else that doesn't fall into one of the other PB categories.
firace
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Nov 09, 2011 8:58 am

Re: SWV: A better webview control for building beautiful GUI

Post by firace »

@All: Many thanks for your feedback!

@KCC: Yes, to clarify, this control is not intended to be used for typical web browsing. Instead, its main purpose is to enable beautiful HTML/JS based GUIs to be used in PB applications, and make communication between PB and the UI as intuitive as possible.

@srod: Yes, the current version uses the default Windows provided libraries (Trident for rendering, Chakra for JS)

Sorry, the Chromium version will also be Windows only, as I am not knowledgeable enough with the details of Mac and Unix development.

@Kiffi:
Agreed, as a modern browser, Trident is a weak option, but as a rendering engine for modern HTML/JS UIs, it seems to be capable enough for most use cases. :)
The idea will be to offer a choice between Trident and Chromium, which both have benefits and drawbacks. (Trident's main benefit for PB coders being its tiny size and memory footprint, IMHO)
By the way, I'm already familiar with RSBasic's CEF module, which is really awesome. :)
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582
User avatar
captain_skank
Enthusiast
Enthusiast
Posts: 576
Joined: Fri Oct 06, 2006 3:57 pm
Location: England

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by captain_skank »

I'd buy it now if it was available, as it will make my programs look more modern and negates the need to have custom gadgets/grids as html handles grids really easily.

The biggest issue would be laying out new 'forms' and how much bigger programs would get ( what do we have to include with each program ? )
User avatar
Tenaja
Addict
Addict
Posts: 1786
Joined: Tue Nov 09, 2010 10:15 pm

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by Tenaja »

firace wrote:I will release SWV as a very easy-to-use DLL (for a reasonable price), if enough people are interested.
I've burned by enough closed source dll's that get orphaned that even though I've been looking for something like this, I could only sponsor it if code was shared with me. Gnozal's libraries are perfect examples.
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 309
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by ar-s »

Yo.
It's an amazing good idea !
Working well on PB 5.71 x86 - W10x64

I just changed the second path line to compil it without making an exe.

Code: Select all

main_UI_filepath$ = GetCurrentDirectory()+"gui_ex2_pure.htm" ; GetPathPart(ProgramFilename()) + "gui_ex2_pure.htm"
The PB Gui Possibilities are pretty hot to improve even with canvas (hoppefully they are here) but the possibilities of css/js as bootstrap are wonderfull.

BIG THANKS
~Ar-S~

My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 5.4x LTS / 5.7x - W10 x64 - Ryzen 7 3700x
Repeat : try : until done = 1
User avatar
Mijikai
Addict
Addict
Posts: 874
Joined: Sun Sep 11, 2016 2:17 pm

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by Mijikai »

firace wrote:...but of course keep in mind that resulting applications will be much much bigger (about 100MB for a simple Hello world application, vs 100KB for the current native version).
The possibilities are great and all but the footprint is just insane.
Im to oldschool so this will never be be a option for me.
firace
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Nov 09, 2011 8:58 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by firace »

Mijikai wrote:
firace wrote:...but of course keep in mind that resulting applications will be much much bigger (about 100MB for a simple Hello world application, vs 100KB for the current native version).
The possibilities are great and all but the footprint is just insane.
Im to oldschool so this will never be be a option for me.
I also prefer small non-bloated executables and low memory usage - that's why I will always keep Chromium as an option, not the default engine.
Last edited by firace on Thu Feb 13, 2020 12:28 pm, edited 1 time in total.
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582
firace
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Nov 09, 2011 8:58 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by firace »

Demo updated:

- Fixed some bugs
- Added a sortable list example (with file system access)
- Added detection for middle and right mouse buttons.

Check line 79 for an example:

Code: Select all

if FindString(eventdetails$, "Event type: mousedown") and FindString(eventdetails$, "Button: 3")     : beep_(2424,141) : endif  ;; Button 3 is the right mouse button
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582
firace
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Nov 09, 2011 8:58 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by firace »

Tenaja wrote:
firace wrote:I will release SWV as a very easy-to-use DLL (for a reasonable price), if enough people are interested.
I've burned by enough closed source dll's that get orphaned that even though I've been looking for something like this, I could only sponsor it if code was shared with me. Gnozal's libraries are perfect examples.
Yes, it's still too early, but when/if the time comes, I will think a little more about pricing matters. Sharing source code with sponsors and top customers could be an option.
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582
firace
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Nov 09, 2011 8:58 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by firace »

Testing some new UI elements:

Image
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582
Little John
Addict
Addict
Posts: 3976
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by Little John »

Cool. 8)

//edit:
https://www.radsix.com/files_swv/SWV_De ... ve_x86.zip
Not found on this server
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
firace
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Nov 09, 2011 8:58 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by firace »

Little John wrote:Cool. 8)

//edit:
https://www.radsix.com/files_swv/SWV_De ... ve_x86.zip
Not found on this server
Hi, thanks for reporting the issue - Demo download link has been fixed. :)
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582
User avatar
Bisonte
Addict
Addict
Posts: 1157
Joined: Tue Oct 09, 2007 2:15 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by Bisonte »

firace wrote:
Little John wrote:Cool. 8)

//edit:
https://www.radsix.com/files_swv/SWV_De ... ve_x86.zip
Not found on this server
Hi, thanks for reporting the issue - Demo download link has been fixed. :)
Sorry, it's not fixed.
Not found on this server
PureBasic 5.72 LTS (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 64GB RAM | iChill GeForce RTX 2080 Super | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)
Little John
Addict
Addict
Posts: 3976
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by Little John »

Bisonte wrote:Sorry, it's not fixed.
Not found on this server
Confirmed at 6:29 o' clock CET.
Fortunately, half an hour ago I was able to download the ZIP archive. :-)
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
hoerbie
User
User
Posts: 59
Joined: Fri Dec 06, 2013 11:57 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by hoerbie »

If I use the link on the first post, download works.

Please recognize, that the link was changed, it is no longer ...Demo1... but ...Demo1b...
firace
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Nov 09, 2011 8:58 am

Re: SWV: A simple HTML/JS desktop GUI engine for PB

Post by firace »

hoerbie wrote:If I use the link on the first post, download works.

Please recognize, that the link was changed, it is no longer ...Demo1... but ...Demo1b...
I just changed it back to Demo1 - hopefully this should clear up any confusion.
My new project: A simple HTML/CSS UI engine for PB desktop apps
viewtopic.php?f=7&t=74582
Post Reply