Sign in Join

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

Mailing lists / pas2js / 2023-02

Pas2js Digest, Vol 55, Issue 8

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Stephen Wright

Hi
You asked "Is it possible to use some sliders on The form screen to position every GUi element?" I do not know how it works for?Pas2jswidgets but if you are using XComponents, then you can build up groups of components that?are next to each other horizontally or?vertically by adding them as children of the appropriate layout box. Nesting these boxes allows you to build up more complex groupings like a grid etc. In this way the components will space themselves on the screen with no need for explicit positions to be declared.? This is useful if you wish to support different screen sizes which is why HTML supports this type of working on the browser. ?You may still wish a sighted person to cross check what you have done to check/edit the default component property values ( e.g. alignment... centre / Top / Bottom etc) until the result matches your intention. This is just a suggestion as I do not know in detail how you are working in Lazarus, but I hope this helps Regards Steve

On Saturday, 25 February 2023 at 11:00:12 GMT, wrote:

Send Pas2js mailing list submissions to
???

To subscribe or unsubscribe via the World Wide Web, visit ??? https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js or, via email, send a message with subject or body 'help' to ???

You can reach the person managing the list at
???

When replying, please edit your Subject line so it is more specific than "Re: Contents of Pas2js digest..."

Today's Topics:

? 1. Re: Pas2js Digest, Vol 55, Issue 3 (Mattias Gaertner) ? 2. lazarus form designer question (Mgr. Janusz Chmiel)

----------------------------------------------------------------------

Message: 1
Date: Fri, 24 Feb 2023 12:10:08 +0100
From: Mattias Gaertner
To:
Subject: Re: [Pas2js] Pas2js Digest, Vol 55, Issue 3 Message-ID: <20230224121008.71442b9a at limapholos> Content-Type: text/plain; charset=UTF-8

{$modeswitch unicodestrings}

That controls the type "String", which is in pas2js always UnicodeString. It has no effect on lfm.

Show quoted text 12 lines
Odesl?no z aplikace Po?ta pro Windows Od: Mgr. Janusz Chmiel via Pas2js Odesl?no:p?tek 24. ?nora 2023 11:39 Komu: pas2js discussions Kopie: Mgr. Janusz Chmiel P?edm?t: Re: [Pas2js] Pas2js Digest, Vol 55, Issue 3 Does have some sense to add Directive to The source code so .lfm content will be encoded correctly?Or it do not help?

Is your lfm encoded in UTF-8? It should be.

Mattias

------------------------------

Message: 2
Date: Fri, 24 Feb 2023 15:42:57 +0100
From: "Mgr. Janusz Chmiel"
To: ""
Subject: [Pas2js] lazarus form designer question
Message-ID:
Content-Type: text/plain; charset="utf-8"

Dear kind developers,
??? I would like to cooperate with kind sighted people,who would position my form GUI elements. But I must explain how to do that for them.
So.
If I will use Pas2jswidgets and form designer.

Is it possible to use some sliders on The form screen to position every GUi element? Or is it really necessary to change width, height values by using edit box of Object inspector?

If it would be possible to se build in
If there are some sliders it would be ideal. Because sighted assistant would only control The positions of GUI elements on The screen if there is visible object and sliders could be used to manipulate every GUI element to The corresponding position. Thank you for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230224/d25115d7/attachment-0001.htm>

------------------------------

Subject: Digest Footer

Mgr. Janusz Chmiel
to Stephen Wright

Dear Steve,
Thank you for your professional advices.
Pas2jswidgets allow Me to work as follows.
I create The project.
I use CTRL+ALT+p shortcut to recall components window. I type tw letters on The search components Editbox to filter only Pas2jswidgets GUI specific elements such as Twbutton, twEdit, ETc. I must use NVDA special rewiev mode which calls GDI32 functions and special GDI hooks in C so textual output of Lazarus components list is readable and I can click on those elements. Because components list is not being coded by using Tlistwiev class for example which would be fully NVDA accessible. I press Insert and Divide on numeric keypad to assign chosen component and I press Enter key. In this case, I can change Button text by pressing F2. I can even use Lazarus Context menu to recallGUI specific context menu. So I can create default event for chosen object. For Button, default event is Click, for Edit field The default event is Onchange, ETC. In this case, focus automatically jump to Lazarus source code Window. And cursor is located one line after Begin keyword in The procedure buttonclick event. If I would use Combobox, or Listbox, I can even add multiple items by only typing them in The form Windows after pressing F2. So text value I write line by line followed by pressing Enter. And Listbox will contain several items. I can save textual changes by pressing Ok button.

Lazarus form Window fortunately support focus navigation. So TAB and SHIFT+Taband arrow keys work. I can know on which item I Am by pressing F2.

My painful reality is related to object positioning on Pas2js widgets.
Lamw, Lamw android module wizard support special more keywords in The .lfm files than when using LCL or Pas2js.
It is possible to use adjectives as follows to specify object typographical information.
Button1.Text:= 'App Runtime Layouting Demo';
Button1.LayoutParamWidth:= lpWrapContent;
Button1.LayoutParamHeight:= lpWrapContent;
Button1.PosRelativeToParent:= [rpTop, rpCenterHorizontal];
Button1.UpdateLayout();
Unfortunately, such object members are not known by Pas2js units or by Pas2jswidgets or even by LCL.

But I will not be sad any more.

I will code buttons and other GUI element and I will please my mother for help. If there are not sliders and developer must really use Object inspector and Editable fields to specify object position values, it will not be very pleasant work. I will try to test it with my mother what she will see on The screen.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230225/9be78c63/attachment.htm>