[Pas2js] simple widget units unit for non advanced programmers

Michael Van Canneyt michael at freepascal.org
Sun Mar 14 10:34:41 CET 2021



On Sun, 14 Mar 2021, Mgr. Janusz Chmiel wrote:

> Dear specialists,
> Professionals such as MR Wancare and similar programmers here are comfortable with existing units for GUi creation.
>
>
> But what if somebody is not so advanced. Puma project is being prepared I know about it. But I Am still dreaming, if somebody of us could prepare some simple GUi creation unit for Pas2js. Which would involve some simple mechanishms for event detection such as if some editable field content will be changed.
>
> This simple unit could support editable fields, buttons and some text area and this is all.
> Do you think, that somebody of us could prepare this simple unit here? Unit should allow to create many editable fields and resulting GUI should be also compatible with Android WEBVIEW module.

I honestly believe that webwidgets is as simple as it gets.
I don't see how one could make it even more simple.

So If you really need even more simple than that, I believe you are better off
creating directly the HTML file and simply attach your event handlers to the edit
boxes, buttons and whatnot;

All you need in that case is the "web" unit, it contains the browser API.

Then you can do the following in the start of your program:

Document.GetElementByID('youredit').OnChange:=@DoSomethingNice;

Even more simple than that is not possible.

Michael.


More information about the Pas2js mailing list