Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2021-03

simple widget units unit for non advanced programmers

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mgr. Janusz Chmiel

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.

Really. Only button, editable field and text area on WEB page. Sure, if it would be possible to add some text to button so screen reader will not only report button word. I will not overload you about tables, since it is not easy to create fully automated solution and complex units are allready here such as bootstraptable. And some webwidget related demo.
Thank you very much for yours patience.
With deepest appreciation possible.
Janusz Chmiel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20210314/0058621e/attachment.htm>

Reply by email

Michael Van Canneyt
to Mgr. Janusz Chmiel
Mgr. Janusz Chmiel wrote 8 lines
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');

Even more simple than that is not possible.

Michael.

Reply by email

Mgr. Janusz Chmiel
to Michael Van Canneyt

You are having right. I Am sad, that there is no opensource or free screen reader compatible HTML editor, which could create buttons, editable fields and other elements. Seamonkey build in HTML editor is very accessible with screen reader, but it is not possible to add buttons, radio buttons and other elements. The question is if I will use such approach if GUI will be so nice like when you are using bootstrap or webwidgets inside yours demo program. Microsoft word contain build in HTMl editor, question is if is it possible to add buttons and other similar elements, or only styles which are part of The Word editor such as headings, list ETC. But you are having right, that for Me it would be The best to find such WEB editor so I will create GUi by using this editor. And Pascal code will detect if some specific editable field or button have been clicked or changed. Yours pacman game is A good example of such behaviour, such as detecting if checkbox for sound havwe been checked or unchecked. But I know that object programming will always be necessary to be used. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20210314/c707057e/attachment.htm>

Reply by email

Mgr. Janusz Chmiel
to Mgr. Janusz Chmiel

Oh yes. I have found excellent Microsoft product. Microsoft Expression. I can add input button, input checkbox, etc. And I can do it on HTMl level. So now, I must only learn The code for interacting with various WEB elements if its status is checked, unchecked, clicked. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20210314/90c229fb/attachment.htm>

Reply by email

Michael Van Canneyt
to Mgr. Janusz Chmiel
Mgr. Janusz Chmiel wrote
Oh yes. I have found excellent Microsoft product. Microsoft Expression. I can add input button, input checkbox, etc. And I can do it on HTMl level. So now, I must only learn The code for interacting with various WEB elements if its status is checked, unchecked, clicked.

You are aware that this product is discontinued since December 20, 2012 ?

Michael.

Reply by email