Page 1 of 1

How to vertical centering TLabel and TEdit in the custom registration interface form designer?

Posted: Fri Sep 05, 2025 5:09 am
by Xor
How to vertical centering TLabel and TEdit in the custom registration interface form designer?

Background information:
  1. TLabel default height is 13;
  2. TEdit default height is 21;
Operations attempted:
  1. Manual dragging: Due to automatic grid snapping and grid size settings, vertical centering cannot be achieved;
  2. Setting TLabel height to 21 and Layout to tlCenter allows alignment, but after exiting the designer and re-entering, or after executing and running with protection, the TLabel on the registration interface reverts to height 13 and becomes misaligned;
Requirement:
Is there a way to fix the TLabel height at 21, or to achieve vertical centering between the two components?

Image