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

Post here messages if you have any problems with working of Enigma Protector
Post Reply
Xor
Posts: 7
Joined: Sat Jan 07, 2023 11:18 am

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

Post 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
Post Reply