stig
New Member
Posts: 34
|
Post by stig on Oct 9, 2022 12:48:11 GMT -5
I miss a window type that accepts html/css/javacripts from strings or a file, so that I can build a UI the exact way I want it to look like, and to intercept navigate events from that window, read them and cancel the event, and refresh the UI. If this was possible in LB, you can shift a lot of code into that window code and create things LB cannot do. I have two licences for basic languages that can do this, and I love the freedom from microsoft that it gives me, but, one is dead, and the other keeps breaking their syntax every week, and never fix problems, so.. Is it possible to add this to LB, codewise?
|
|
|
Post by Rod on Oct 9, 2022 14:22:12 GMT -5
Explore Run BASIC. Not sure how active the community is but might do some of what you want.
|
|
|
Post by Chris Iverson on Oct 10, 2022 19:40:23 GMT -5
While I appreciate the basis of this idea, the problem with this is it requires shipping an entire HTML/CSS renderer and Javascript engine with your code.
Essentially, you'd have to ship an entire web browser with your application.
This is doubly so for LB5, which is cross platform, and would not be able to rely on any specific browser libraries being available on the target system. You get Edge/Chromium included in Windows nowadays, but beyond that, you have to make guesses, or provide the libraries yourself.
And if you're going to do that, you may as well cut out the middleman and make an Electron app.
For those not aware, an Electron app is literally the Google Chrome browser(well, Chromium, to be more specific), modified to only load a single webpage stored locally. Every Electron app that gets "shipped"(for example, Discord, Spotify, Microsoft Teams, etc) is an entire copy of all of the Chrome binaries, plus a bundle of HTML, CSS, JS, and all the media needed for your "app"(website).
The benefit being that the same app code(that is, the "website" bundle) can be used to run your app on every single platform that has a Chromium binary available for it, with very little modification needed.
|
|