Author Topic: control alignment  (Read 292 times)


  • Full Member
  • ***
  • Posts: 142
  • СЛАВА УКРАЇНІ! / Slava Ukraïni!
control alignment
« on: March 30, 2022, 09:08:33 am »
in this moment the component align tool has the many options among which there is:

"Center in window"

I was wondering if it would be senseful to add another option:

"Center in parent container"?

Or also, substitute the Center in window, with the one I suggest. In fact if you have a control (say a TButton) contained in a contained (say a TPanel), and the TPanel spans only a small portion on the containing TForm or TFrame, if one presses Center in window, it might easily happen that the cited TButton is moved in a hidden part on the TPanel. See the attached screenshots. 

Thank you
« Last Edit: March 30, 2022, 09:17:41 am by tt »
FPC 3.2.0/Lazarus 2.0.10+dfsg-4+b2 on Debian 11.5
FPC 3.2.2/Lazarus 2.2.0 on Windows 10 Pro 21H2


TinyPortal © 2005-2018