Forum > Designer

Aligning two buttons (etc.) relative to the middle of a form

<< < (2/2)

howardpc:
Yes, wp, you are quite correct.
I should have tried out my thought in practice before suggesting something that does not work.

MarkMLl:
And I should have checked before agreeing with you :-)

Actually, I think that the IDE actively warns that border control is inoperative with certain combinations.

MarkMLl

Leledumbo:
Not sure if the attached project is what you expected, but basically just play around with ChildSizing.

MarkMLl:

--- Quote from: Leledumbo on September 21, 2021, 07:25:22 am ---Not sure if the attached project is what you expected, but basically just play around with ChildSizing.

--- End quote ---

OK, I think I see what you've done... ChildSizing on the form/panel/groupbox etc. which then tells the children where to stand, rather than giving each child an anchor. I note that this is described at https://wiki.lazarus.freepascal.org/Autosize_/_Layout#Precedence_rules, which has been on my screen pending time to read it for the last couple of days.

I note the discussion at https://wiki.lazarus.freepascal.org/LCL_AutoSizing, which makes it sound pleasantly deterministic. In the past people have looked at things like https://constraints.cs.washington.edu/deltablue/ for UI layout, but the always appeared to come with health warnings.

MarkMLl

Navigation

[0] Message Index

[*] Previous page

Go to full version