Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

pas2js widgetsets

The ultimate goal is to use Free Pascal and Lazarus to create a webpage in a RAD manner as much as possible. There can be several approaches to this.

Either way, a set of basic widgets that can be used in HTML are needed.

Currently, several efforts are underway to create such a widget set.

Open Source

In random order, they are:

Other Demonstrations

Commercial

Most freeware tools for Lazarus Web Application lack of features and documentations. If you really need a good component for Web Application then TMS Web Core is worth to try.

Another commercial alternative that is free for open-source projects is xProject

This project transforms your Delphi or Lazarus project into a web app without any modifications.
There's no need to install components in Delphi or Lazarus.
The result is exclusively HTML, CSS, and JavaScript, and it looks and behaves exactly like the desktop application.

XIDE/XComponents

XIDE is a simple, stand alone, open source IDE for Free Pascal which runs in the browser (and on other platforms supported by Lazarus).

It is a combined Client Side Run Time Library and RAD IDE intended to allow Pascal(Pas2JS) and/or Python(Pyodide) development with the minimum of installation or learning curve while also being as platform independent as possible. XComponents is the widgetset that enables XIDE.

XIDE is intended for Prototyping, Small Group Collaboration and Agile Line of Business projects where the choice of browser can be specified. It will run on any platform that is supported by Chrome or Electron, or Lazarus(+CEF). It is not intended for the development of general-purpose public facing web sites. It may also run on other HTML5 browsers (e.g. Microsoft Edge), but this is not tested.

XIDE projects can be deployed as a single static HTML/Javascript (or .exe) file combining the User App with the RTL and IDE Code. This can be done with the IDE disabled (for end users) or enabled (as done in the examples below, for collaborators).

Examples…..

text
   XIDESimplePascalExample.html [https://steve--w.github.io/XIDEPages/XIDESimplePascalExample.html]
   XIDESimplePythonExample.html [https://steve--w.github.io/XIDEPages/XIDESimplePythonExample.html]
   XIDEPascalSVGAndGPUExample.html [https://steve--w.github.io/XIDEPages/XIDEPascalSVGAndGPUExample.html]

To build from source….

text
   XIDE [https://github.com/Steve--W/XIDE] 
   XComponents [https://github.com/Steve--W/XComponents]

XIDE Screenshot

Pas2JS Widgetset

Pas2JS Widgetset is a RAD Framework to develop Web Applications like to develop Windows Applications.
Installation Procedure:
1. Download from: https://github.com/heliosroots/Pas2JS_Widget
or from https://github.com/pascaldragon/Pas2JS_Widget
2. Extract to Lazarus - pas2js_designer
3. Open: Lazarus - pas2js_designer - package: pas2js_designer_package.lpk

4. Click on Use - Install

5. Click on Yes to install this package

6. You will see LCL for pas2js!

Navigation


From the Free Pascal wiki, page "pas2js widgetsets", as it stood on 2023-10-03 after a change by Peter.kainz, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .