Recent

Author Topic: Wrong category...Auto-alignment of TLabels and TEdits - and anything else  (Read 8101 times)

WickedDum

  • Full Member
  • ***
  • Posts: 211
Just saw this was the wrong category.  I re-wrote it in Beginners.  Sorry.
(I cannot delete this.)

I saw items being dropped in (a TPanel?) and they were auto-aligning.  I created a TPanel but cannot seem to get it working.  Auto-alignment seems a lot easier than trying to get them lined up manually! :D

How do I do that?

Thank you!!
« Last Edit: September 10, 2016, 11:34:21 pm by WickedDum »
Practice Safe Computing!!

Intel i5-4460K @ 3.2GHz | Win8.1 64-bit | FPC: v3.0 | Lazarus:  v1.6.0

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Auto-alignment of TLabels and TEdits - and anything else
« Reply #1 on: September 10, 2016, 11:32:34 pm »
You need to set ChildSizing
http://wiki.freepascal.org/Autosize_/_Layout#Layout

Give us an Idea on how your form looks, maybe a screenshot, and how you want them aligned, else that is the best answer I can give to you.

 

TinyPortal © 2005-2018